System.Directory.removeDirectoryRecursive and symlinks
Isaac Dupree
ml at isaac.cedarswampstudios.org
Tue Jun 10 16:01:10 UTC 2014
On 06/10/2014 11:37 AM, Gracjan Polak wrote:
> Isaac Dupree <ml <at> isaac.cedarswampstudios.org> writes:
>> Many Unix operations on
>> symlinks, like `ls`, do differ based on a trailing slash. `rm -rf
>> symlink` removes just the symlink; `rm -rf symlink/` appears to remove
>> the contents of the target directory but neither the symlink nor the
>> target directory itself...)
>
> Sounds like a very reasonable idea and has prior art.
Should removeDirectoryRecursive also remove regular files when called on
a file? That's what `rm -r` does, but it might not be what we want
`removeDirectoryRecursive` to do.
-Isaac
More information about the Libraries
mailing list