Author(s): M. Hermenegildo.
Version: 1.11#222 (2004/5/24, 13:8:7 CEST)
Version of last change: 1.11#198 (2004/2/16, 17:28:46 CET)
This is a (temporary) extension to library
system
(which it reexports). It implements functionality that is often convenient in
Makefile
s. 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
,
cat/2
,
cat_append/2
,
convert_permissions/4
,
symbolic_link/2
,
symbolic_link/3
,
delete_files/1
,
delete_files_nofail/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
,
datime_atom/1
,
datime_atom/2
,
all_values/2
,
no_tr_nl/2
,
call_unknown/1
,
replace_strings_in_file/3
,
writef/3
,
writef/2
,
add_suffix/3
,
add_preffix/3
,
writef_list/3
,
writef_list/2
,
delete_filess/1
,
etags/2
,
etagss/2
,
get_dirs/2
,
get_rec_dirs/2
,
get_rec_dirs/3
,
get_rec_dirs/4
,
lss/3
,
lss/4
,
lss/6
,
copy_files_rec/3
,
filter_dirs/3
,
touch/1
.
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).
Usage:
Files
is a list of atm
s.
(basic_props:list/2
)
Dir
is an atom.
(basic_props:atm/1
)
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).
Usage:
Files
is a list of atm
s.
(basic_props:list/2
)
Dir
is an atom.
(basic_props:atm/1
)
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.
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.
Usage:
Directory
is an atom.
(basic_props:atm/1
)
Pattern
is a pattern to match against.
(patterns:pattern/1
)
FileList
is a free variable.
(term_typing:var/1
)
FileList
is a list of atm
s.
(basic_props:list/2
)
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)
).
Usage:
Pattern
is a pattern to match against.
(patterns:pattern/1
)
FileList
is a free variable.
(term_typing:var/1
)
FileList
is a list of atm
s.
(basic_props:list/2
)
filter_alist_pattern(UnFiltered, Pattern, Filtered)
Filtered
contains the elements of UnFiltered
which match with Pattern
.
Usage:
UnFiltered
is a list of atm
s.
(basic_props:list/2
)
Pattern
is a pattern to match against.
(patterns:pattern/1
)
Filtered
is a free variable.
(term_typing:var/1
)
Filtered
is a list of atm
s.
(basic_props:list/2
)
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.
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.
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.
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.
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.
touch(File)
Updates the access and modification time of File
to current time.
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).
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.