Moves from the file represented by this handle to a different
file and returns a file handle for the target. The given
name arguments define the path to take to the target:
".." stands for the parent directory of the current file,
any other string is the name of a file or directory to move to.
You can usually walk from any file to itself calling walk with no
arguments or to its parent directory calling walk with a single
".." argument, but walking to named children normally only
works for directories.
(send a-file-handle read-stat) → stat? |
Obtains the directory entry information for a file.
(send a-file-handle write-stat stat) → void? |
stat : stat? |
Changes the directory entry information for a file. Only the fields
stat-mode, stat-mtime, stat-length,
stat-name and stat-gid can be changed at all, any
other field should be set to #f. The directory bit in the
stat-mode field cannot be changed. The stat-length
field, if it is set at all, can only be set to zero, truncating the
file.
In addition to the basic parameter validation, the file server may
perform permission checks to determine if a change is allowed.
If the method does not raise an exception, all of the requested
changes have been performed by the file server, otherwise nothing
should have changed.
Opens the file for reading or writing data and returns the maximum
I/O unit size. The mode argument is a combination of flags
as it can be produced by the open-mode macro.
Reads data from the file after it has been opened for reading.
The returned data should be at most size bytes long.
Writes data to the file after it has been opened for writing.
The return value is the number of bytes actually written.
Closes the file if it is open and invalidates the file handle. Even
if this method signals an error, the file handle is still invalid
after the call.
Closes the file if it is open, removes it from the storage device
and invalidates the file handle. Even if this method signals an
error, the file handle is still invalid after the call.