You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2026/03/27 13:25:00 UTC

[jira] [Created] (IO-888) FileUtils cleanDirectory deletes all subdirectories and files, not just files.

Gary D. Gregory created IO-888:
----------------------------------

             Summary: FileUtils cleanDirectory deletes all subdirectories and files, not just files.
                 Key: IO-888
                 URL: https://issues.apache.org/jira/browse/IO-888
             Project: Commons IO
          Issue Type: Bug
          Components: Utilities
    Affects Versions: 2.16.1
            Reporter: Dmitry


The PathUtils.cleanDirectory method does not erase subdirectories. Only the files in them. The FileUtils.cleanDirectory method erases everything except the directory itself, and this is the expected behavior.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)