[Haskell-cafe] Filesystem access

Andrea Rossato mailing_list at istitutocolli.org
Thu Jun 21 16:30:01 EDT 2007


On Thu, Jun 21, 2007 at 09:19:51PM +0100, Andrew Coppin wrote:
>  OK, a few questions...
> 
>  1. Is there *any* way to determine how large a file is *without* opening it? 
>  The only library function I can find to do with file sizes is hFileSize; 
>  obviously this only works for files that you have permission to open!

System.Posix.Files
fileSize


>  2. Is there any way to discover Windoze-style "attributes" for files? 
>  (Read-only, archive, system, hidden, et al.)

The module before, if I understand correctlu.

all the best
andrea


More information about the Haskell-Cafe mailing list