Skip to content

Windows OS Walk Backslash Issue #21

@Flinst0n

Description

@Flinst0n

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".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions