Skip to content

bisync: trailing slash in local path arg on Windows causes error #7511

Closed

Description

@nielash

The associated forum post URL from https://forum.rclone.org

https://forum.rclone.org/t/rclone-cant-create-file-system/43471/18?u=nielash

What is the problem you are having with rclone?

A trailing slash in a quoted local path command arg on Windows causes a fatal error. Example:

bisync --resync QuickAccess: "U:\Documents\OneDrive1\" --config "U:\Settings\Rclone\config" -vv

results in an error like:

2023/12/15 12:05:36 Failed to bisync: prior lock file found: C:\Users\Graeme\AppData\Local\rclone\bisync\C__Users_Graeme_QuickAccess..U__Documents_OneDrive1"_--config_U__Settings_Rclone_config_-vv.lck

Reported on the forum by a user, and I was able to reproduce it. Removing the trailing slash resolves the issue (confirmed by user). While the fix is easy, it's not immediately obvious, so I think it would be worth trying to catch this and handle it better. Looks like possibly the backslash is being interpreted as escaping the quote -- probably an easy fix.

What is your rclone version (output from rclone version)

rclone v1.65.0
- os/version: Microsoft Windows 11 Home 23H2 (64 bit)
- os/kernel: 10.0.22631.2861 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.21.4
- go/linking: static
- go/tags: cmount

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Activity

  1. added this to the Soon milestone on Dec 18, 2023
  2. self-assigned this
    on Dec 18, 2023
  3. added a commit that references this issue on Dec 22, 2023
    0aece34
  4. linked a pull request that will close this issuebisync: add overlapping paths check #7515on Dec 22, 2023
  5. added a commit that references this issue on Jan 20, 2024
    2a58207
  6. added a commit that references this issue on Jan 20, 2024
    d031cc1
  7. added a commit that references this issue on Jan 23, 2024
    f70a4c6
  8. moved this to Done in bisyncon Aug 20, 2024
  9. added a commit that references this issue on Jul 20, 2026
    2f66ea7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

  • Status
    Done

Relationships

None yet

Development

No branches or pull requests

Issue actions