Proposal: removeDirectoryRecursive should not follow symlinks

David Feuer david.feuer at gmail.com
Tue Jan 6 15:51:09 UTC 2015


So stick it in a directory-for-insane-people package and call it
removeDirectoryRecursiveFollowSymlinksISwearIReallyWantThat.
On Jan 6, 2015 10:43 AM, "Mike Meyer" <mwm at mired.org> wrote:

> On Tue, Jan 6, 2015 at 8:59 AM, Bardur Arantsson <spam at scientician.net>
> wrote:
>>
>> Because *nobody* wants to follow symlinks when doing "rm -rf". Even if
>> they think they do, they *really* don't. Any design which relies on it
>> is probably fundamentally broken. (If they're *really really* sure, they
>> can write their own.)
>>
>
> Don't need to reread the arguments - I've been aware of them since CSRG
> introduced symlinks in 4BSD, and the utilities didn't know about them in
> the beta releases.
>
> You pretty much never want to call it on a file tree you didn't build.
> But if I built the file tree, then I know what's going on. Making me write
> my own is probably going to result in less robust code, or copying the code
> out of the library and tweaking it, neither of which is desirable.
>
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://www.haskell.org/mailman/listinfo/libraries
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20150106/3ce36226/attachment.html>


More information about the Libraries mailing list