xybu / onedrived-dev

A Microsoft OneDrive client for Linux, written in Python3.
https://github.com/xybu/onedrived-dev
MIT License
706 stars 78 forks source link

It is not possible sync hidden files (".something") #50

Open jeronimofagundes opened 7 years ago

jeronimofagundes commented 7 years ago

It is not possible sync hidden files (".something"). It would be great if there was some config to allow sync them.

xybu commented 7 years ago

If I remember correctly the new OneDrive API doesn't allow you to upload ".something" anymore so I just hardcoded that in ignore list to avoid trouble. Not sure if that's still the case now. Somehow Microsoft's official programs could still create entries of that name...

zyf0330 commented 7 years ago

My OneDrive sync some .* file in Windows, but not sure about api.

zyf0330 commented 7 years ago

@xybu I inspect content in https://docs.microsoft.com/en-us/onedrive/developer/rest-api/api/driveitem_put_content, and don't find anything about dot prefixed file blocked to upload. And onedrive client on Windows uploads them actually.

zyf0330 commented 7 years ago

@xybu @jeronimofagundes I have updated code to remove this hard code of filtering .* hidden files. And it works normally.

68