
10 Jun
2014
10 Jun
'14
12:01 p.m.
On 06/10/2014 11:37 AM, Gracjan Polak wrote:
Isaac Dupree
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