-
Notifications
You must be signed in to change notification settings - Fork 1.2k
IFileSystem.fileExists returns false even when a file exists. #8890
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The problem is we're treating the |
Other issues across the code:
|
The old code for |
@ericsnowcurrently |
Right. I have a fix for that. :) |
(for #8890) The plan is to un-revert this stuff bit-by-bit. * Revert "Fixes to FileSystem code to use bitwise operations (#8966)" This reverts commit acb59d3. * Revert "Make sure IFileSystem is registered in DI during tests. (#8902)" This reverts commit dabd87f. * Revert "Remove IFileSystemUtils from IOC container (#8898)" This reverts commit 8ab93d7. * Revert "Skip a few more tests. (#8830)" This reverts commit d197557. * Revert "Skip problematic tests. (#8810)" This reverts commit c5f7766. * Revert "Use new VS Code filesystem API. (#8307)" This reverts commit 7cbd1c2. * Revert "Update the code base to use IFileSystem instead of fs and fs-extra. (#7915)" This reverts commit a23761d.
Uh oh!
There was an error while loading. Please reload this page.
This breaks
conda
andvirtual environments
In master.
I believe the logic of checking the file stat is incorrect.
We're checking if the file type == FIle when checking if a file exists.
However fstat could indicate that its a symbolic link.
Not sure this is the issue, but likely. Either way still is incorrect.
I.e. I don't think we should be
comparing == File
, we might want to checkif !== Directory
instead. I.e. allow other values except directory. I.e. its possibleUnknown
could be returned for a file (just as with symbolic links & others).Proposed solution
The text was updated successfully, but these errors were encountered: