seung-lab / cloud-files

Threaded Python and CLI client library for AWS S3, Google Cloud Storage (GCS), in-memory, and the local filesystem.
BSD 3-Clause "New" or "Revised" License
36 stars 8 forks source link

Path Parsing Error #56

Closed william-silversmith closed 3 years ago

william-silversmith commented 3 years ago
from cloudfiles import CloudFiles
cf_local = CloudFiles("file:///...")
cf_cloudian = CloudFiles("matrix://something/test_gtbot/somethning2/c6005b4e897c0ab6")                                   
cf_local.transfer_to(cf_cloudian)

The script above will not copy the files to matrix://something/test_gtbot/something2/c6005b4e897c0ab6, instead everything is in matrix://something/test_gtbot/2/c6005b4e897c0ab6 , testing it with gs:// produces the same results.

william-silversmith commented 3 years ago

Thanks to @ranlu for reporting.

william-silversmith commented 3 years ago

Resolved in 33a7841ba5b03640527c70f864aff7d43fe00292