[ https://issues.apache.org/jira/browse/IO-576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16726932#comment-16726932 ]
Matt Sicker commented on IO-576: -------------------------------- Looking into the source, it does not recurse into symbolic links, though it does call delete on the symbolic link itself. The specific behavior of following links seems to be undefined (though it is supported in the NIO2 API). I wonder if this would be better served by an equivalent util class around Path instead of File. > FileUtils.deleteDirectory() doesn't specify how it handles links > ---------------------------------------------------------------- > > Key: IO-576 > URL: https://issues.apache.org/jira/browse/IO-576 > Project: Commons IO > Issue Type: Improvement > Components: Utilities > Affects Versions: 2.5 > Environment: Linux > Reporter: david cogen > Priority: Major > Labels: documentation > > If the directory I specify to FileUtils.deleteDirectory() contains a symbolic > link, does it follow the link and delete all the files the link points to? > (I HOPE not!) > But without the promise, I consider this too dangerous to contemplate using. -- This message was sent by Atlassian JIRA (v7.6.3#76005)