filesystem_spec icon indicating copy to clipboard operation
filesystem_spec copied to clipboard

put() inconsistent with cp

Open kamalsharma2 opened this issue 3 years ago • 0 comments

The behavior of put is not consistent with the linux command cp. When we have source and target paths like source : "path1/file1.txt" target : "path2/" and Target directory already exists, then with linux command cp -r path1/* path2, we get target : "path2/file1.txt" However, doing the same with fs.put("path1/*","path2",recursive=True), we get target : "path2/path1/file1.txt"

To remove this inconsistency, '/*' case should be handled in put()

kamalsharma2 avatar Jan 11 '22 04:01 kamalsharma2