Skip to main content

File system

ALL_FILES_UNDER

all_files_under(Charstring folder)->Bag of (Charstring, Charstring)
STABLE

Get all files somewhere under folder

along with their relative path from folder


BASE_FILENAME

base_filename(Charstring path) -> Charstring
STABLE

The Unix style file name part of path


CD

cd(Charstring folder) -> Charstring
STABLE

Set current wroking directory


CREATE_FOLDER

create_folder(Charstring folder) -> Charstring
STABLE

No description.


DIR

dir(Charstring d) -> Bag of Charstring
STABLE

List files in directory named d.

Empty d lists files in current working directory pwd()


dir(Charstring path, Charstring pat) -> Bag of Charstring d
STABLE

List files in directory path whose names match the pattern pat


dir( ) -> Bag of Charstring
STABLE

List files in current working directory pwd()


DIRECTORIES_IN

directories_in(Charstring f) -> Bag of Charstring
STABLE

Get names of all directories in folder f


DIRECTORYP

directoryp(Charstring path) -> Boolean
STABLE

Is a path a directory?


DIRPATH

dirpath(Charstring file) -> Charstring
STABLE

Convert file to Unix style filename ended with a single /


FILEDATE

filedate(Charstring file) -> Timeval
STABLE

The time when file was last updated


FILE_EXISTS

file_exists(Charstring file) -> Boolean
STABLE

Does file exists?


FILE_LINES

file_lines(Charstring file) -> Number
STABLE

The number of lines in file


FILE_PATH

file_path(Charstring nm) -> Charstring
STABLE

The Unix style path to file named nm


FIND_FILE

find_file(Charstring folder, Charstring file) -> Charstring
STABLE

Get full path to first occurence of file somewhere under folder


FOLDER_OF

folder_of(Charstring path) -> Charstring f
STABLE

The Unix style folder name of path


FULL_FILENAMES

full_filenames(Charstring f, Charstring pat) -> Bag of Charstring
STABLE

Get the paths to the files in folder f that match pattern pat


LOAD_OSQL

load_osql(Charstring file, Charstring tn) -> Charstring
STABLE

Evaluate OSQL statements in file belonging to topic named tn


load_osql(Charstring file) -> Charstring
STABLE

Evaluate OSQL statements in file


POPD

popd( ) -> Charstring
STABLE

Go back to folder before last pushd(path)


PUSHD

pushd(Charstring path) -> Charstring
STABLE

Make path current working directory. Go back with popd()


PWD

pwd( ) -> Charstring
STABLE

The current working directory


READ_FILE

read_file(Charstring file) -> Charstring
STABLE

Get contents of file as a string


SA_HOME

sa_home( ) -> Charstring
STABLE

User's home folder


SUBDIRECTORIES

subdirectories(Charstring f) -> Bag of Charstring
STABLE

Get names of all directories under folder f, including f


TEMP_FOLDER

temp_folder( ) -> Charstring
STABLE

User's folder for temporary files


WRITE_FILE

write_file(Charstring cont, Charstring filename) -> Charstring
STABLE

Write cont into filename


WRITE_FILEPATH

write_filepath(Charstring cont, Charstring path) -> Charstring
STABLE

No description.