Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-15846

FileSystemUtils.deleteRecursively always returns false

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 5.0 RC3
    • Fix Version/s: 5.0 RC4
    • Component/s: Core
    • Labels:
    • Last commented by a User:
      false

      Description

      The root is deleted in postVisitDirectory by a call to Files.delete(dir). Once the walking of the file tree has completed Files.deleteIfExists(root) is called and its result is returned. This result is always false due to the earlier File.delete(dir) call.

        Issue Links

          Activity

          Hide
          juergen.hoeller Juergen Hoeller added a comment -

          We're checking Files.exists upfront now, relying on the file tree walking to actually delete the root.

          Show
          juergen.hoeller Juergen Hoeller added a comment - We're checking Files.exists upfront now, relying on the file tree walking to actually delete the root.

            People

            • Assignee:
              juergen.hoeller Juergen Hoeller
              Reporter:
              awilkinson Andy Wilkinson
              Last updater:
              St├ęphane Nicoll
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                16 weeks, 1 day ago