caseymrm / drivesink

A tool for syncing photos with Amazon Cloud Drive from the command-line.
https://drivesink.appspot.com/
MIT License
106 stars 18 forks source link

Windows OS Walk Backslash Issue #21

Open Flinst0n opened 8 years ago

Flinst0n commented 8 years ago

Dear all,

I am experiencing a bug with the script running on Windows (10). Tree traversal works, but a weird folder structure is created:

Folder structure of to-be-uploaded folder: D:\smalltest\Panorama_01\somefiles.jpg

Call: drivesink.py upload D:\smalltest BACKUP_FOTOS

Output: INFO drivesink:86 _make_child_folder Creating remote folder Panorama_01 in BACKUP_FOTOS INFO drivesink:86 _make_child_folder Creating remote folder \Panorama_01 in BACKUP_FOTOS INFO drivesink:35 upload_child_file Uploading D:\smalltest\Panorama_01\70732.jpg to \Panorama_01 INFO drivesink:35 upload_child_file Uploading D:\smalltest\Panorama_01\70734.jpg to \Panorama_01

Result: Two folders are created: "Panorama_01" and "\Panorama_01" folders are uploaded to "\Panorama_01".