Skip to content
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

Fixing bad behavior in IOUtil.deletePaths #1416

Merged
merged 1 commit into from
Aug 30, 2019

Commits on Aug 29, 2019

  1. Fixing bad behavior in IOUtil.deletePaths

    * 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
    lbergelson committed Aug 29, 2019
    Configuration menu
    Copy the full SHA
    cf63312 View commit details
    Browse the repository at this point in the history