system(Command,Status):
Send Command to the OS and bind Status to the status returned from the OS.
chdir(Atom):
cd(Atom):
Change the current working directory to Atom.
get_cwd(Dir):
getcwd(Dir):
Bind Dir to the current working directory.
date(Y,M,D):
The current date is Y year, M month, and D day.
date(Date):
Assume the current date is Y year, M month, and D day. Then Date is unified with the term date(Y,M,D).
time(H,M,S):
The current time is H hour, M minute, and S second.
get_environment(EVar,EValue):
environ(EVar,EValue):
The environment variable EVar has the value EValue.
expand_environment(Name,FullName): FullName is a copy of Name with environment variables replaced with their definitions.
FullFile is a copy of Name with environment variables replaced with their definitions.
copy_file(Name,NameCp): Make a copy of a file.
delete_directory(Name): Delete the directory named Name if it exists.
delete_file(Name): Delete a file.
directory_exists(Name): Test if a directory with the Name exists.
directory_files(Name,List): List is the list of all files in some undefined order in the directory named Name.
file_base_name(Name,Base): Base is the base name of the file named Name.
file_directory_name(Name,Dir): Dir is the directory of a file named Name.
file_exists(Name): Test if a file with the Name exists.
file_property(Name,Property): The file or directory with the Name has the Property, where Property is one of the following:
type(Value) where Value is one of the following: regular,directory, symbolic_link, fifo, and socket.
access_time(Value): Value is the latest access time.
modification_time(Value): Value is the latest modification time.
status_change_time(Value): Value is the time of the last file status change.
size(Value): Value is the size of the file in bytes.
permission(Value): Value is one of the following: read, write, and execute.
file_stat(Name,Property): This predicate calls the C function stat and unifies Property with a structure of the following form: