Proposal: removeDirectoryRecursive should not follow symlinks

Johan Tibell johan.tibell at gmail.com
Tue Jan 6 13:48:52 UTC 2015


This is not a bugfix. A bug is failing to follow the functions
specification, which *does* include following symlinks.

On Tue, Jan 6, 2015 at 7:16 AM, Alois Cochard <alois.cochard at gmail.com>
wrote:

> +1 for fixing this
>
> -1 for the deprecation cycle
>
> I don't think it's sane to rely on the current behavior anyway.
>
> Cheers
>
> On 5 January 2015 at 23:25, Edward Z. Yang <ezyang at mit.edu> wrote:
>
>> Discussion period: one month
>>
>> I propose to backwards incompatibly change the behavior of
>> removeDirectoryRecursive to not follow symlinks.  We could optionally
>> add a replacement function under a new name which does follow symlinks.
>>
>> This would bring its behavior inline with rm -rf.
>>
>> I also opened a ticket here: https://ghc.haskell.org/trac/ghc/ticket/9266
>>
>> Thanks,
>> Edward
>> _______________________________________________
>> Libraries mailing list
>> Libraries at haskell.org
>> http://www.haskell.org/mailman/listinfo/libraries
>>
>
>
>
> --
> *Λ\ois*
> http://twitter.com/aloiscochard
> http://github.com/aloiscochard
>
> _______________________________________________
> 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/b69924b3/attachment.html>


More information about the Libraries mailing list