Subdirectories not synced correctly on Windows
On Windows, I found that files in subdirectories are not synced correctly.
The fault is linked to relative_path
and `datetime_dict and the error occurs in the following line: cli.py#L503
The failure cause is that relative_path
uses the OS-dependent separator while the datetime_dict
does not (uses /
as separator), which can be traced back to cli.py#L478
A possible fix would be to locally enforce the expected path encoding of the datetime_dict
by adding the following line
relative_path_for_dict = relative_path.replace(os.path.sep, "/")
and using relative_path_for_dict
instead in cli.py#L503
This issue does not only affect _sync_remote_docs()
but also _sync_remote_files()
and, hence, needs to be fixed for both.