From: Nicolas C. <war...@fr...> - 2003-11-15 01:37:44
|
> I separate the module in two : > - SysPath : includes all things which doesn't touch to filesystem ( that > is the reason why i don't know if it is interessant to have Link ). > - SysUtil : includes all things which touch the filesystem, so you have to > be consistent with FS, it is also a try to imitate a lot of Unix command > like find, which... > > For now, it has been tested and it works on Linux ( and the abstract > SysPath has been tested with Linux FS syntax ). [...] > If you have any suggestion... > This library is under developpement and has no public release yet. But > if some of you are interested, i will speed up the dev in order to do a > public release. The test_file patterns does not seem very powerful to me : - for the most obvious cases, like filtering by extension, it can't be used - for complex cases, you are limited by the number of test cases. I think it could be easily remplaced by : val filter : (Unix.stats -> bool) -> string list -> string list (** we are clearly showing the dependency to unix here *) Other things I would like to get added to the Filename module : val extension : string -> string (* returns the extension of the file or "" if no extension *) val switch_extension : file:string -> ext:string -> string (* change the extension of a filename *) Nicolas Cannasse |