Filewatcher does not trim leading slashes on Windows
When using the filewatcher on Windows, leading slashes in the DestFilename
are not properly trimmed in the getTransfer
function, like they are on Linux (because Windows uses backslashes). There are 2 ways to fix this:
- Convert backslashes to regular slashes before the trimming
- Replace the
"/"
cutset by a"\\"
cutset on Windows (can be done using thefilepath.Separator
constant)