const OPEN_INPUT = 256;
const OPEN_OUTPUT = 512;
String basename String filename without-extension: String ext = nil;
filename
removing any directory component, and removing
the extension ext
if it matches and is not nil
.
String current_directory;
void set_current_directory String directory;
directory
. This raises a file-error
when
problems arise.
String directory-of-file String name;
filename
.
String expand-filename String filename relative-to: String directory = nil;
filename
relative to the directory
. If directory
is nil
, expansion is relative to the current working directory.
String express-filename String filename relative-to String directory;
filename
in terms relative to the directory
.
String filename-as-directory String filename;
filename
as the name of a directory.
MutableArray filenames-in-directory String dir_name;
dir_name
.
String locate-file String file along-path Indexed path;
file
somewhere along the path
.
Return nil
if it could not be found.
boolean file-exists String name;
YES
iff the file with the name
exists.
int type-of-file String name follow-link: boolean follow_link = YES;
FILE_TYPE_*
constants.
instance (id) open String name input: boolean input_p = FALSE output: boolean output_p = FALSE flags: int action = 0;
File
.
instance (id) open String name alongPath Indexed path subdir: String subdir1 = nil subsubdir: String subdir2 = nil;
path
.
For the subdirectories subdir1
and subdir2
, when not nil, the
following attempts are made for a dir
in the path
: dir
,
dir/subdir2
, dir/subdir1
, and dir/subdir1/subdir2
.
void remove String name;
name
.
public String name;
int flags;
protected id init String n flags int f;
String directoryName;
id reopen;
flags
.
int type-of-file;
FILE_TYPE_*
constants for the receiving File.
If the file is not open, the file is tested as if the file were open,
i.e. following links.
OutputStream writeFields OutputStream s;
long length;
long position;
void seek long offset relative: int whence = STREAM_SEEK_SET;