Closed Reverse256 closed 2 years ago
1: The correct pattern would be -e X: -n /torrents
or -e X:\ -n /torrents/
, as the script is not removing any slashes that you aren't replacing yourself with the new path.
Ergo, X:\
has a trailing slash, where as /torrents
does not. You need to respect the trailing slash. (And yes, documentation was misleading, correcting).
2: \
is an escape character in Linux\Mac shell, and this should be standard knowledge that you would have to \\
on a Linux\Mac shell for Windows paths.
I will update README with the following information.
Hello, I just googled 'how to contributed to github' to do this haha.
Thanks
(I have only tested Windows -> Linux)
(1) trailing '/' required ('-n /torrents/')
Doing: '-n /torrents' will result in:
X:\torrents\Linux_isos\ubuntu.iso -> /torrentsLinux_isos/ubuntu.iso
(2) only replacing 'drive_letter:\' requires double backslash '-e X:\\ -n /mnt/x/'