Skip to content

Support UTF-8 filenames/folders #26

@Nottt

Description

@Nottt

The current script will fail with lots of folders and filenames.

I can get past the UnicodeEncodeError: with this:

reload(sys)
sys.setdefaultencoding('utf-8')

But then it goes on but nothing is shared/changed

python transfer.py "Téáóçãú" backup@.email false
Changing all files at path "Téáóçãú" to owner "backup@.email"
Prefix: [u'T\xe9\xe1\xf3\xe7\xe3\xfa']
Use this link for authorization: link
Verification code: code
User backup@.email is permission ID 05411747774099128436.
Gathering file listings for prefix []...
Folder: Téáóçãú ([], 1CkIpP7rvMP5R1AKaLNEzjRhMGKr2tcPf)
Gathering file listings for prefix [u'T\xe9\xe1\xf3\xe7\xe3\xfa']...
Folder: solto ([], 1aHUnS8GV4TGI_j5CAhuAOHYl4-5kwT8s)

Any chance we can get this? This is still the best method to change permissions with google drive but it chokes with lots of characters :(

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions