0

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

Alex Ott
  • 80,552
  • 8
  • 87
  • 132
Kumar Harsh
  • 423
  • 5
  • 26

1 Answers1

0

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/"
Alex Ott
  • 80,552
  • 8
  • 87
  • 132