OneDrive, Syncronize and files with "&" or ","

Advertisement

Arvy
Joined:
Posts:
8
Location:
Sao Paulo, Brazil

OneDrive, Syncronize and files with "&" or ","

Hello,
OneDrive native app is horrible, so I decided to use WinSCP to automate my sync.
Works fine, but fails in files with some chars like & and , in the filenames.

Script example:
open davs://<mydata>@d.docs.live.net/
synchronize remote -mirror -delete -criteria=either -preservetime I:\DJ /<myuserid>/Audios-DJ
exit
Runs and uploads files ok. But if I run again, it resend some files (not modified):
Anchor (Lush & Simon Remi |       12309 KB | 9085,4 KB/s | binary | 100%
I:\...\Bigfoot - W&W.     |       10549 KB | 8865,8 KB/s | binary | 100%
Eparrei (W&W Remix) - Dim |        9452 KB | 7099,6 KB/s | binary | 100%
Get Back (Junior Kain & A |       16013 KB | 7837,8 KB/s | binary | 100%
(...)
Note: I cannot see the files in the interface too! When I open directly (no-script), it shows that I have 903 local files vs 783 remote files. And I cannot see the files with & and ,. If I drag from local to remote, it shows an overwrite alert!

Probably: WinSCP is not interpreting correctly the "list directory" command sent to OneDrive servers, and ignoring those files.

Using latest version 5.17.10.

Thank you.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
35,439
Location:
Prague, Czechia

Re: OneDrive, Syncronize and files with "&" or ","

Please attach a full session log file from GUI showing the directory listing and the overwrite prompt, when uploading the invisible files.

To generate the session log file, enable logging, log in to your server and do the operation and only the operation that causes the error. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Reply with quote

Arvy
Joined:
Posts:
8
Location:
Sao Paulo, Brazil

Just removed my email and user id from logs.
< 2021-04-07 13:07:36.088     <D:href>https://d.docs.live.net/-removed-/Audios-DJ/2021/100%20Degrees%20-%20Dubdogz%20^0%20Bhaskar.m p 3</D:href>
  • OneDrive.log (442.81 KB, Private file)

Reply with quote

Advertisement

Arvy
Joined:
Posts:
8
Location:
Sao Paulo, Brazil

Here is a new log, in "Debug 2" mode.

- connected
- listing
- drag & drop
- file overwrited
- closed
  • OneDrive.log (4.55 MB, Private file)

Reply with quote

Arvy
Joined:
Posts:
8
Location:
Sao Paulo, Brazil

I can see several lines like:
. 2021-04-09 09:55:57.281 207: Failed to parse href: [https://d.docs.live.net/-removed-/Audios-DJ/2021/Dont%20Let%20Me%20Down%20(Club%20Mix)%20-%20Lucas%20^0%20Steve.mp3]
In fact, the "failed to parse" lines are the missing files in the remote pane view.

Reply with quote

Advertisement

Arvy

Hi @martin,
the workaround will help me a lot, I want to stop using the native OneDrive app and use WinSCP, I feel more comfortable with it.
Thanks!

Reply with quote

martin
Site Admin
martin avatar

I'm sending you an email with a development version of WinSCP to the address you have used to register on this forum.

Reply with quote

Arvy
Joined:
Posts:
8
Location:
Sao Paulo, Brazil

Hey there! The issue is fixed!
Replied to you with a screenshot.
Thanks a lot for the fix.
Rogério

Reply with quote

Advertisement

You can post new topics in this forum