[ 
https://issues.apache.org/jira/browse/IO-857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17855911#comment-17855911
 ] 

Dmitry commented on IO-857:
---------------------------

I've read it, I just don't understand the use-case for this behavior. That 
leaves a bunch of empty subdirectories. Path Utils.DeleteDirectory, erases the 
directory itself. And it may not be possible to recreate it on Linux systems 
where special rights to directories are set.

 

And as I wrote earlier, FileUtils.cleanDirectory does not have such a problem

> PathUtils.cleanDirectory method does not erase subdirectories
> -------------------------------------------------------------
>
>                 Key: IO-857
>                 URL: https://issues.apache.org/jira/browse/IO-857
>             Project: Commons IO
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 2.16.1
>            Reporter: Dmitry
>            Priority: Minor
>
> 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)

Reply via email to