 |
|
BaselScript |
Beschreibung
Directory functions
All names of these functions are prefixed with "directory."
Subdirectory exists
#s = $directory.exist(directory name, subdirectory name)
If subdirectory exists, then return value = 1, sonst = 0
Result:
#e = $directory.exist(/APPDIR/files/, zzz)
if #e == 1
message "zzz exist”"
endif
Get higher directory
$d = $directory.get_higher_directory(directory)
Example:
#dir = /APPDIR/files/zzz
$d = $directory.get_higher_directory(#dir)
Result:
$d = /APPDIR/files
Get number of files in directories
$ d = $ directory.directory_files (directory)
Example:
If $ d <0 is, the verzeichnis does not exist