Comments (6)
My library stated 2.0.0-beta, I'm updating to the latest and will see if they can reproduce it.
from longpath.
Updating to latest Pri.LongPath, the user still hits this issue. Same stack trace.
from longpath.
The user manually tried going to the folder that had issues. Note, this folder name (1234_5678-110) was already returned from parentFolder.GetDirectories(), and the code is now iterating on each of these child folders with child.GetDirectories().
The user, when he navigates Windows Explorer to the parentFolder, can see the list of directories underneath. (Note this is a network drive). Then when user double-clicks on 1234_5678-110, an error message appears in windows:
"1234_5678-110 is not accessible. Access is denied."
from longpath.
One more side note, somewhat related. The same person has a shared network folder with paths like:
\\SLFILE01\Files1\mydoc.docx
When he goes home, and isn't connected to network, the following throws an exception:
FileInfo fi = new FileInfo (@"\\SLFILE01\Files1\mydoc.docx");
var bad = fi.Exists; // This throws exception
It is expected that fi.Exists would throw 'false' instead. I'm putting a try/catch around the Exists function now.
from longpath.
I haven't been able to repo this; but is the user using Sync Center or some other method of offline files?
from longpath.
Hi,
Just checked with the user. They aren't using anything like that at work.
You can close this if you want. I've already modified (added try/catch around the Exists function) my own branch and am not blocked by this issue.
Thanks
from longpath.
Related Issues (20)
- .NET Standard 2.0 support HOT 2
- DirectoryInfo.Refresh fails with UnauthorizedAccessException if executing principal has no access to parent folder HOT 1
- Path.GetPathRoot() throws ArgumentOutOfRangeException HOT 1
- The filename or extension is too long when creating a Directory on UNC
- Infinite sequence of elements when traversing the directory name consisting of single space HOT 3
- StreamWriter HOT 1
- Regression on 2.0.47.0 for DirectoryInfo HOT 2
- Can you document public methods HOT 1
- Mono support incomplete HOT 5
- File handles not being disposed HOT 2
- Path.GetPathRoot() throws IndexOutOfRangeException
- File.WriteAllText throws System.EntryPointNotFoundException on Mono HOT 1
- Endless loop
- File.Copy does two operations, for not win and then for win
- DirectoryInfo Delete mothod is throw exception HOT 1
- Have you considered merging with System.IO.Abstractions? HOT 1
- Error: Trying to create a parent directory, which exists but the current user has no permissions. HOT 1
- Consider checking for error upon subdirectory creation in Directory.CreateDirectory
- Long UNC pathname containing forward-slash (/) path separators is not normalised correctly
- Error with a really long and strange filename. HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from longpath.