Skip to content

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:

  1. Convert backslashes to regular slashes before the trimming
  2. Replace the "/" cutset by a "\\" cutset on Windows (can be done using the filepath.Separator constant)
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information