-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing bad behavior in IOUtil.deletePaths (#1416)
* The method IOUtil.deletePaths(Iterable<Path>) had pathological. * A Path is an Iterable<Path> which iterates over the subpaths in the Path. Therefore, this version was binding instead of the varargs version that takes Path... Then the method would try to delete all of the subpaths in the path. * This is obviously bad behavior. Fixed by adding an explicit check to see if it's called with a single Path. * Extracted a new method deletePath which is used for deleting a single path. * Fixes ##1414
- Loading branch information
1 parent
46b1a00
commit e1bbd34
Showing
3 changed files
with
45 additions
and
15 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