[
https://issues.apache.org/jira/browse/HADOOP-6536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12828974#action_12828974
]
Ravi Gummadi commented on HADOOP-6536:
--------------------------------------
Since when symlink to a file is sent as param to fullyDelete(), it deletes the
symlink only(and not the file pointed to by symlink), I think fullyDelete()
should only delete the symlink even when symlink to a dir is passed as
param(and should not delete the dir pointed to by symlink).
> FileUtil.fullyDelete(dir) behavior is not defined when we pass a symlink as
> the argument
> ----------------------------------------------------------------------------------------
>
> Key: HADOOP-6536
> URL: https://issues.apache.org/jira/browse/HADOOP-6536
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs
> Reporter: Amareshwari Sriramadasu
> Fix For: 0.22.0
>
>
> FileUtil.fullyDelete(dir) deletes contents of sym-linked directory when we
> pass a symlink. If this is the behavior, it should be documented as so.
> Or it should be changed not to delete the contents of the sym-linked
> directory.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.