New version of os_lib: 1.2 is now available from the server.
os_lib contains a number of predicates for manipulating OS objects,
such as: os_dir/1+2, os_file/1+2, os_sel/3, os_ext/3, os_postfix/3, os_mill/3, os_dir_stem_ext/4, etc
It supports polymorphism (/-terms,atoms,strings,aliases) and operator led casting (/,+,&,@).
In addition pack(requires) (superseded by pack(lib)) and
pack(os_sub) have been removed.
The crux of os_sub's functionality can now be found in os_lib.
For instance all files within the current dir structure can be had with os_file( File, sub(true) ).
?- cd( pack(os_lib) ).
true.
?- ls.
% doc/
pack.pl prolog/ src/
true.
?- lib(os_lib).
true.
?- os_file( File ).
File =
pack.pl ;
false.
?- os_file( File, sub(true) ).
File = 'doc/Releases.txt' ;
File = 'doc/html/h1-bg.png' ;
File = 'doc/html/h2-bg.png' ;
...
pack page:
http://stoics.org.uk/~nicos/sware/os_libdocs:
http://stoics.org.uk/~nicos/sware/os_lib/doc/html/os_lib.htmlNicos Angelopoulos
---
http://stoics.org.uk/~nicos/