I am trying to copy folder from server to dse fs but it is gettng saved as file
dse fs "put file:/home/dir /"
Getting this error
IOException: is a directory
Is there any way to copy directory to dse filesystem
I am trying to copy folder from server to dse fs but it is gettng saved as file
dse fs "put file:/home/dir /"
Getting this error
IOException: is a directory
Is there any way to copy directory to dse filesystem
You need to use the dse fs "cp -R file://.... /"
instead of put
, but the -R
flag was added only DSE 6.7. If you're on lower versions, then you'll need to write a simple script that will walk through directory & upload individual files.
another workaround, if you have a single level of files, you can use following commands:
dse fs "mkdir dir" "cp file://`pwd`/dir/* /dir/"