Unix path manipulation
The filename and dirname used in '_oasis' file and OASISTypes.package are always encoded as Unix path. They are changed when using it on the target system.
Test if the filename is current dir (either '.' or '') on Unix.
concat fn1 fn2
Concatenate fn1 and fn2, i.e. fn1^'/'^fn2
.
dirname fn
Return directory name of fn
or current_dir_name
if no
directory name is defined.
basename fn
Return filename without its directory name.
chop_extension fn
Remove the last part of the filename, after a '.',
return fn
if there is no extension.
check_extension fn ext
Check that the filen fn
has the extension ext
.
Not exported
add_extension fn ext
Add the extension ext
to the filename fn
.
Not exported
replace_extension fn ext
Add the extension ext
to the filename fn
.
Not exported
capitalize_file fn
Return filename capitalized.
uncapitalize_file fn
Return filename uncapitalized.
Try to compress the filename by removing '.' and collapsing '..'. Not exported
make_relative fn_root fn
Make fn
relative to fn_root
.
Not exported
Set for Unix path. Not exported