getDirectoryContents without special directories "." and ".."

Greg Weber greg at gregweber.info
Sat Dec 13 22:24:16 UTC 2014


You can use `ls` in the shelly package which besides filtering '.' and '..'
will also give relative results if a relative path is given

On Sat, Dec 13, 2014 at 12:31 PM, Alexander Berntsen <alexander at plaimi.net>
wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> On 13/12/14 21:24, Henning Thielemann wrote:
> > In the 'unix' package this would be the right behaviour, but I
> > think not in 'directory'.
> «getDirectoryContents dir returns a list of all entries in dir.» There
> is nothing about the name or documentation of the function that
> implies it will leave out random files from its result.
> - --
> Alexander
> alexander at plaimi.net
> https://secure.plaimi.net/~alexander
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iF4EAREIAAYFAlSMohsACgkQRtClrXBQc7W1IgD/UmTIl1BqfX/XWoRLK7sXLinr
> n4/eHWNjsSz8QoOK3O8BAI98lhQOa+K/UDV36hBjEWc2/ydSWvjUVPSlKLcq6wI8
> =U3fO
> -----END PGP SIGNATURE-----
> _______________________________________________
> 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/20141213/090a20fc/attachment.html>


More information about the Libraries mailing list