Closed hellfirehd closed 6 years ago
It might have something to do with having a space in the path as the following path with a trailing \
works:
PS D:\SubSync> dotnet run --project .\src\SubSync\SubSync.csproj '\\C3P0\Storage\media\Movies\'
Hmm, strange! Almost sounds like a bug in the FileSystemWatcher itself. Just to be sure I got it right.
these works:
dotnet run --project .\src\SubSync\SubSync.csproj '\\C3P0\Storage\media\TV\Bull (2016)'
dotnet run --project .\src\SubSync\SubSync.csproj '\\C3P0\Storage\media\Movies\'
this does not work:
dotnet run --project .\src\SubSync\SubSync.csproj '\\C3P0\Storage\media\TV\Bull (2016)\'
?
I will play around with it and see if i can recreate the error. If not, I will just trim all trailing backslashes from the paths.
Thanks for reporting this, @hellfirehd! 👍
Ok. This is crazy.
This is actually a bug in the dotnet core! When it reads the argument that is passed in using double or single quoutes AND when having a trailing backslash it will actually include the single/double quoute as part of the text.
when you pass: '\\C3P0\Storage\media\TV\Bull (2016)'
it is read as: \\C3P0\Storage\media\TV\Bull (2016)
without quotes.
when you pass: '\\C3P0\Storage\media\TV\Bull (2016)\'
it is read as: \\C3P0\Storage\media\TV\Bull (2016)\'
Luckily its very specific. It will either include a backslash and single or double quote. which makes it rather easy to make a workaround for.
Launching with:
The same path without the trailing
\
runs fine.