Repository navigation
Use the "withFileTypes" options with fs.readdir(). #14994
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
Merged
Eric Snow (ericsnowcurrently)
merged 36 commits into
microsoft:main
from
ericsnowcurrently:fix-14983-better-findInterpretersInDir-filtering
Jan 11, 2021
Merged
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
7a68cd4
Use the "withFileTypes" options with fs.readdir().
ericsnowcurrently d443136
Filter only files, not directories.
ericsnowcurrently 34be222
All "dedented" lines to be empty.
ericsnowcurrently f2e1bf9
Add functional tests for findInterpretersInDir().
ericsnowcurrently 501f4d4
lint
ericsnowcurrently 27ac913
Drop an outdated TODO.
ericsnowcurrently fec3e81
Factor out an "opts" arg for findInterpretersInDir().
ericsnowcurrently 935bde5
Add the "ignoreErrors" option to findInterpretersInDir().
ericsnowcurrently dcd4c11
Factor out the "cfg" arg to iterExecutables().
ericsnowcurrently 70f93bc
Do not export iterExecutables().
ericsnowcurrently 33497f5
Add some notes to iterExecutables().
ericsnowcurrently ec5acb1
Fold back in the findInterpretersInDir "opts" as args..
ericsnowcurrently 68eb0ed
Factor out matchFile().
ericsnowcurrently 745c038
Change checkBin from an arg to a constant.
ericsnowcurrently 45b7dfd
Add a note about recursion depth.
ericsnowcurrently 7430fab
Clarify about "depth".
ericsnowcurrently 8f60121
Filter the subdirs rather than the files.
ericsnowcurrently 6bc20c7
Drop ensureFSTreeIfWindows() and ensureFSTreeIfNotWindows().
ericsnowcurrently 91af899
Make checkBin a local variable for the sake of unit testing.
ericsnowcurrently 2d93e99
Add a NEWS entry.
ericsnowcurrently e9c873c
Skip currently bogus Python executables on Windows during tests.
ericsnowcurrently 26a4703
Fix executable order in Windows test.
ericsnowcurrently 3b45233
Fix getInterpreterPathFromDir().
ericsnowcurrently d067097
Drop the file match in getInterpreterPathFromDir().
ericsnowcurrently 348363d
Add some debugging.
ericsnowcurrently 8f4f85b
Add more debugging.
ericsnowcurrently 95c6dc1
Add more debugging.
ericsnowcurrently 43c6f5b
Add more debugging.
ericsnowcurrently 2120d98
Add more debugging.
ericsnowcurrently 7ff9b95
Add more debugging.
ericsnowcurrently f9934db
Add more debugging.
ericsnowcurrently 6eb5fde
Yield symlinks from findInterpretersInDir().
ericsnowcurrently 88ec229
Add symlink support to ensureFSTree().
ericsnowcurrently a654357
Test for symlinks.
ericsnowcurrently c6b7ec1
Drop debugging code.
ericsnowcurrently 246329a
lint
ericsnowcurrently File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Filter the subdirs rather than the files.
- Loading branch information
commit 8f60121826e7e946287f745db783230849186dee
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.