Code Monkey home page Code Monkey logo

Comments (3)

hellfirehd avatar hellfirehd commented on July 2, 2024

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\'

from subsync.

zerratar avatar zerratar commented on July 2, 2024

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! ๐Ÿ‘

from subsync.

zerratar avatar zerratar commented on July 2, 2024

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.

from subsync.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.