Closed ranlu closed 11 months ago
Hi Ran!
On MacOS I created the following test case:
(ig) wms:~/code/igneous/projects/fly_synapses$ cloudfiles cp hello.txt ./amazing/
(ig) wms:~/code/igneous/projects/fly_synapses$ cloudfiles cp hello.txt /tmp/notexists/
(ig) wms:~/code/igneous/projects/fly_synapses$ ls /tmp/notexists
hello.txt
Have you tried updating to the latest version?
You are right, I pinned the version to avoid issue #92. It seems that issue is also fixed after 4.18. I will close both issues.
With cloud-files 4.13.0, if I run
cloudfiles cp test_file /tmp/nonexist/
, cf will create/tmp/nonexist/
and then copy the file, since 4.14.0 cf fails with aFileNotFoundError
if the target folder does not exist already. With the newer version, I have to treat local operation differently, while the old behavior was more consistent with other protocols like gs and s3.