OCaml Forge
SCM

Detail: [#711] rm and links to non-existing files

Bugs: Browse | Download .csv | Monitor

[#711] rm and links to non-existing files

Date:
2010-08-04 08:45
Priority:
3
State:
Open
Submitted by:
Sylvain Le Gall (gildor-admin)
Assigned to:
Sylvain Le Gall (gildor-admin)
Resolution:
None
Severity:
normal
Version:
v0.4.0
Operating System:
Linux
Summary:
rm and links to non-existing files

Detailed description
In the archive batteries-1.0.0.tar.gz there is a link to upper directory

ls -alh batteries/doc/batteries/html
batteries_large.png -> ../../batteries_large.png

../../batteries_large.png doesn't exist.

When trying to remove the directory:
# FileUtil.rm ~recurse:true ["batteries"];;
Exception: FileUtil.RmDirNotEmpty "batteries/doc/batteries/html".

The solution is that whatever the existence of the file, if the symlink exists it must be removed.

Followup

No Followups Have Been Posted

Attached Files:

Changes:

No Changes Have Been Made to This Item