mirror of
https://github.com/rclone/rclone.git
synced 2026-10-09 14:39:28 -04:00
vfs/vfscache: fix silent write failure when mounting with remote:.
When mounting with 'remote:.' (dot notation for current directory), the '.' is passed through toOSPath() which encodes it to full-width '.' (U+FF0E) via EncodeDot. This caused the VFS cache data/meta root to be written to a full-width-dot directory while the local cache backend pointed to the canonicalized path, resulting in writes being cached but never uploaded. Fix by calling clean() on the relativeDirPath before toOSPath(), so path.Clean() strips the trailing '/.' removing the dot before encoding.
This commit is contained in:
500 Internal Server Error
Gitea Version: 1.28.0+dev-477-g8b6ad49a5f