| Did you know ... | Search Documentation: |
| Send methods |
->exists.
->exists ->access<-path.
->push->make.
A typical sequence to ensure the existence of a directory is:
... new(D, directory(Path)), ( send(D, exists) -> true ; send(D, make) ), ...
See also directory->access.
->access~ or ~<user>
is expanded as are shell variables notated as $<name>. directory<-path
is filled with an absolute path to this directory, directory<-name
with the basename of the directory.
<-convert->remove
and
directory->exists.->modified.
The first call just writes the current modification time in -modified
and fails. If the directory does not exist any longer, directory->modified
succeeds as well.
This method is intended for periodic changes to the set of members in
a visualised directory. See also file<-time.
->push
to temporary switch directories.
->push->cd.
When successful, the old working directory is prepended to the chain @directory_stack
as a name. The method directory->pop
allows you to go back to the original directory.
->pop ->cd->make
and directory->exists.->same.
If the same chain is given for files and directories, directory->scan
will not determine the type. Depending on your Unix version, this may be much
faster.
Bugs: Changes working directory while running. This will not be undone when execution is aborted while scanning the directory.
<-directories <-files