filesystem_spec
filesystem_spec copied to clipboard
put() inconsistent with cp
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()