rclone: [BUG] onedrive not accepting spaces on folder names.

What is your rclone version (eg output from rclone -V) rclone v1.36 Which OS you are using and how many bits (eg Windows 7, 64 bit) Linux carlos-pc 4.10.6-1-MANJARO #1 SMP PREEMPT Sun Mar 26 19:17:24 UTC 2017 x86_64 GNU/Linux Which cloud storage system are you using? (eg Google Drive) OneDrive The command you were trying to run (eg rclone copy /tmp remote:tmp) This bug is reproducible using any command that contain one folder with spaces, example:

$ rclone lsd onedrive:'/Plex/TV Shows/'
2017/03/28 16:55:37 directory not found

A log from the command with the -vv flag (eg output from rclone -vv copy /tmp remote:tmp)

$ rclone lsd onedrive:'/Plex/TV Shows/' -vv
2017/03/29 19:24:46 DEBUG : rclone: Version "v1.36" starting with parameters ["rclone" "lsd" "onedrive:/Plex/TV Shows/" "-vv"]
2017/03/29 19:24:48 INFO  : One drive root 'Plex/TV Shows': Modify window is 1s
2017/03/29 19:24:48 directory not found

And to prove that this folder actually exists:

$ rclone lsd onedrive:'/Plex/' -vv
2017/03/29 19:25:32 DEBUG : rclone: Version "v1.36" starting with parameters ["rclone" "lsd" "onedrive:/Plex/" "-vv"]
2017/03/29 19:25:34 INFO  : One drive root 'Plex': Modify window is 1s
2017/03/29 19:25:34 DEBUG : One drive root 'Plex': Reading ""
2017/03/29 19:25:34 DEBUG : One drive root 'Plex': Finished reading ""
          -1 2017-03-27 23:17:06         2 Animes
          -1 2017-03-28 03:27:48         7 Movies 2D
          -1 2017-03-28 03:27:48         2 Movies 3D
          -1 2017-03-26 18:36:43         3 TV Shows
2017/03/29 19:25:34 DEBUG : Go routines at exit 6
2017/03/29 19:25:34 DEBUG : rclone: Version "v1.36" finishing with parameters ["rclone" "lsd" "onedrive:/Plex/" "-vv"]

More informations about this bug: https://forum.rclone.org/t/directory-not-found-even-though-it-exists https://forum.rclone.org/t/oddity-with-one-drive-and-spaces-in-folder-names

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 3
  • Comments: 25 (15 by maintainers)

Most upvoted comments

Sorry have been away - back now! Will merge the PR soon and post a beta here for you all to try.

Please find the beta with this fix in here

https://beta.rclone.org/v1.36-21-ge3a4132/ (uploaded in 15-30 mins)

OK I’ll try and see if I can do the changes this weekend