Git Product home page Git Product logo

Comments (17)

peteraritchie avatar peteraritchie commented on June 26, 2024

I need to look into UNC support; more than likely a fair amount of work :)

from longpath.

jonathanjones2 avatar jonathanjones2 commented on June 26, 2024

Have you decided if you'll be extending support to UNC paths? I'm currently in a situation where I scan shares via the UNC path and I'm running into issues with long paths and filenames.

from longpath.

peteraritchie avatar peteraritchie commented on June 26, 2024

I believe the latest changes and passing tests mean that UNCs are now supported. I would appreciate if someone could try out some of the issues they've ad with UNCs prior.

Thanks.

from longpath.

FuchsiaSoft avatar FuchsiaSoft commented on June 26, 2024

@peteraritchie are you still wanting results?... I'm about to use this for a lot of work with UNCs so can let you know how it goes in a week or so?

from longpath.

jonathanjones2 avatar jonathanjones2 commented on June 26, 2024

No thanks

JJ
On Apr 7, 2015 12:29 PM, "Chris Wilson" [email protected] wrote:

@peteraritchie https://github.com/peteraritchie are you still wanting
results?... I'm about to use this for a lot of work with UNCs so can let
you know how it goes in a week or so?


Reply to this email directly or view it on GitHub
#9 (comment)
.

from longpath.

FuchsiaSoft avatar FuchsiaSoft commented on June 26, 2024

JJ I was referencing Peter's comment after yours. Sorry if I was unclear.

from longpath.

peteraritchie avatar peteraritchie commented on June 26, 2024

@FuchsiaSoft yeah, the code should work now with UNCs; I haven't had the time to get too deep into testing it (moved to a different country :) ). If there's something blocking you, let me know.

from longpath.

idiamant avatar idiamant commented on June 26, 2024

Hi,
I am having a problem with the UNC support.
I have the following path in a variable: \10.24.0.11\Deployments\Backups\AndroidBuilder

That directory exists, but when checking with Directory.Exists("\10.24.0.11\Deployments\Backups\AndroidBuilder") it doesn't find this path.
Then it goes into the next line, which is Directory.CreateDirectory("\10.24.0.11\Deployments\Backups\AndroidBuilder"), and this one fails due to this error: {"The UNC path should be of the form \server\share."}.

Obviously there is lack of UNC support, and I couldn't fully understand why it fails.

Would love to get assistance with this one.

Thanks,
Ido

from longpath.

peteraritchie avatar peteraritchie commented on June 26, 2024

I'm not clear on your question. "\10.24.0.11\Deployments\Backups\AndroidBuilder" is not a valid UNC. UNCs must start with "", which is what is detailed in the error.

from longpath.

idiamant avatar idiamant commented on June 26, 2024

yea, sorry, it was a wrong Paste. it is \10.24.0.11...

from longpath.

peteraritchie avatar peteraritchie commented on June 26, 2024

Huh? that's still missing a slash

from longpath.

idiamant avatar idiamant commented on June 26, 2024

ahhhh
for some reason github removes double slashes :)
its \10.24.0.11\deployments\

from longpath.

enoshixi avatar enoshixi commented on June 26, 2024

UNC paths aren't working for me either. I think the problem is that the long path format for UNC paths is a little different... \\server\share should be formatted as \\?\UNC\server\share.

from longpath.

gpetrou avatar gpetrou commented on June 26, 2024

Are you planning to check the PR for the UNC paths? Also, are you planning to release a new version?

from longpath.

NeilWhitworth avatar NeilWhitworth commented on June 26, 2024

I have been testing with pull request #27 and it does seam to work for long UNC paths. The only issue I has was a path that was exactly MAXPATH in length

from longpath.

peteraritchie avatar peteraritchie commented on June 26, 2024

@NeilWhitworth What issue did you have with a path that was exactly MAXPATH?

from longpath.

peteraritchie avatar peteraritchie commented on June 26, 2024

Assuming this is working now

from longpath.

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.