[ANN] Directory 1.0 released

Martin Wierich martinw@cs.kun.nl
Thu, 02 Dec 1999 12:03:41 +0100


Hi all,

Fergus Henderson wrote:

> > getCreationTime (WindowsFileInfo {winCreationTime}) = winCreationTime
> > getCreationTime (MacFileInfo {macCreationTime}) = macCreationTime
> > getCreationTime (UnixFileInfo _) = abort "This program is not supposed to run
> > under Unix"
>
> I think the point is that that code should be in the library,
> not in the user's code.
>

I don't agree. The above function is too specific to be put into the library. It's
of no use for Unix users. I don't include definitions into a library that only in
limited cases might be convenient and that everyone could define himself as well. As
I said, I think a library should be as primitive but also as general as possible.

>
> P.S.
> What happens if you're using a Windows file system, but you're
> accessing it from a Unix system (e.g. via the smbfs or vfat file systems
> on Linux) or vice versa (e.g. via Samba)?

The files will be regarded as Unix files. (At least I tested accessing Windows files
from Linux)

greetings
  Martin Wierich
  University of Nijmegen