Author(s): M. Hermenegildo.
Version: 1.10#7 (2006/4/26, 19:22:13 CEST)
Version of last change: 1.9#329 (2004/3/25, 16:25:36 CET)
This is a (temporary) extension to library
system (which it reexports). It implements functionality that is often convenient in
Makefiles. Much of this should probably end up eventually in
system, but once we have worked out the best interface and, in some cases, the proper implementation (the implementations in here are in some cases just calls to Un*x shell primitives or commands).
system_extra):- use_module(library(system_extra)).
del_dir_if_empty/1,
move_files/2,
move_file/2,
copy_files/2,
copy_file/2,
cat/2,
cat_append/2,
convert_permissions/4,
symbolic_link/2,
symbolic_link/3,
delete_files/1,
del_file_nofail/1,
del_file_nofail/2,
del_endings_nofail/2,
ls/3,
ls/2,
filter_alist_pattern/3,
do/2,
set_perms/2,
readf/2,
datime_string/1,
datime_string/2,
all_values/2,
no_tr_nl/2,
call_unknown/1,
replace_strings_in_file/3,
writef/3,
writef/2.
system_extra)No further documentation available for this predicate.
move_files(Files, Dir)
Move Files to directory Dir (note that to move only one file to a directory,
rename_file/2 can be used).
No further documentation available for this predicate.
copy_files(Files, Dir)
Copy Files to directory Dir (note that to move only one file to a directory,
rename_file/2 can be used).
No further documentation available for this predicate.
No further documentation available for this predicate.
No further documentation available for this predicate.
No further documentation available for this predicate.
Usage: symbolic_link(Source, Dir)
Dir pointing to file or directory Source (performs a copy in Windows).
Usage: symbolic_link(Source, Dir, NewName)
Dir pointing to file or directory Source and give it name NewName (performs a copy in Windows).
No further documentation available for this predicate.
No further documentation available for this predicate.
No further documentation available for this predicate.
No further documentation available for this predicate.
ls(Directory, Pattern, FileList)
FileList is the unordered list of entries (files, directories, etc.) in Directory whose names match Pattern.If Directory does not exist FileList is empty.
ls(Pattern, FileList)
FileList is the unordered list of entries (files, directories, etc.) in the current directory whose names match Pattern (same as ls('.',Pattern,FileList)).
filter_alist_pattern(UnFiltered, Pattern, Filtered)
Filtered contains the elements of UnFiltered which match with Pattern.
No further documentation available for this predicate.
Meta-predicate with arguments: -goal.
No further documentation available for this predicate.
No further documentation available for this predicate.
No further documentation available for this predicate.
No further documentation available for this predicate.
No further documentation available for this predicate.
No further documentation available for this predicate.
Meta-predicate with arguments: all_values(pred(1),?).
No further documentation available for this predicate.
No further documentation available for this predicate.
Meta-predicate with arguments: call_unknown(goal).
No further documentation available for this predicate.
No further documentation available for this predicate.
No further documentation available for this predicate.
Imported from
system (see the corresponding documentation for details).
Imported from
system (see the corresponding documentation for details).
Imported from
system (see the corresponding documentation for details).
Imported from
system (see the corresponding documentation for details).
Imported from
system (see the corresponding documentation for details).
Imported from
system (see the corresponding documentation for details).
Imported from
system (see the corresponding documentation for details).
Imported from
system (see the corresponding documentation for details).
Imported from
system (see the corresponding documentation for details).
Imported from
system (see the corresponding documentation for details).
Imported from
system (see the corresponding documentation for details).
Imported from
system (see the corresponding documentation for details).
Imported from
system (see the corresponding documentation for details).
Imported from
system (see the corresponding documentation for details).
Imported from
system (see the corresponding documentation for details).
Imported from
system (see the corresponding documentation for details).
Imported from
system (see the corresponding documentation for details).
Imported from
system (see the corresponding documentation for details).
Imported from
system (see the corresponding documentation for details).
Imported from
system (see the corresponding documentation for details).
Imported from
system (see the corresponding documentation for details).
Imported from
system (see the corresponding documentation for details).
Imported from
system (see the corresponding documentation for details).
Imported from
system (see the corresponding documentation for details).
Go to the first, previous, next, last section, table of contents.