mirror of
https://github.com/rclone/rclone.git
synced 2025-03-11 05:25:14 +08:00

This was causing errors which looked like this when copying a file to the root of a drive: mkdir \\?: The filename, directory name, or volume label syntax is incorrect. This was caused by an incorrect path splitting routine which was removing \ of the end of UNC paths when it shouldn't have been. Fixed by using the standard library `filepath.Dir` instead.