[ https://issues.apache.org/jira/browse/IGNITE-3670?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15432390#comment-15432390 ]
Taras Ledkov edited comment on IGNITE-3670 at 8/23/16 8:38 AM: --------------------------------------------------------------- {panel:title=Vladimir} determine the path to be a symlink, we call {dir.delete()} which will fail if directory is not empty. {panel} Not true. If the *file* is symlink and *file.delete()* is called, then the symlink is deleted. I think it is a right and expected behavior. When the user creates symbolic link to directory he doesn't expect delete target contents when symlink is deleted recursive. was (Author: tledkov-gridgain): {panel:title=Vladimir} determine the path to be a symlink, we call {dir.delete()} which will fail if directory is not empty. {panel} Not true. If the *file* is symlink and file.delete() is called, then the symlink is deleted. I think it is a right and expected behavior. When the user creates symbolic link to directory he doesn't expect delete target contents when symlink is deleted recursive. > IGFS: Local secondary: Add test for listPath() method called for symlink to > directory > ------------------------------------------------------------------------------------- > > Key: IGNITE-3670 > URL: https://issues.apache.org/jira/browse/IGNITE-3670 > Project: Ignite > Issue Type: Task > Components: IGFS > Affects Versions: 1.6 > Reporter: Taras Ledkov > Assignee: Taras Ledkov > Fix For: 1.8 > > > 1. Create symlink under the *workDir* that is points to directory that is > placed outside *workDir*; > 2. Call listPaths() for the IGFS path that is mapped to the symlink. -- This message was sent by Atlassian JIRA (v6.3.4#6332)