-
Notifications
You must be signed in to change notification settings - Fork 892
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix directory exclusion on Windows. (#881)
* Fix `GetCommandLineFilesTest.tearDown()` on Windows Deleting a folder that is the working dir of any running process is a PermissionError on Windows. The above test should therefore `os.chdir()` out of a temp dir before trying to delete it. * Strip trailing path separators from `exlcude` paths * Fix excluding folders on Windows Folder exlusion had no effect on Windows because `os.walk()` output uses backslash path separators but `IsIgnored()` was hardcoded to use forward slash. Replace hardcoded '/'s with `os.path.sep`.
- Loading branch information
Showing
3 changed files
with
12 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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 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 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