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
'.' on Unix.
Test if the filename is current dir (either '.' or '') on Unix.
'..' on Unix.
concat fn1 fn2 Concatenate fn1 and fn2, i.e. fn1^'/'^fn2.
concat fn1 fn2
make lst Concatenate all filename components of lst.
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.
check_extension fn ext
add_extension fn ext Add the extension ext to the filename fn.
add_extension fn ext
replace_extension fn ext Add the extension ext to the filename fn.
replace_extension fn ext
capitalize_file fn Return filename capitalized.
uncapitalize_file fn Return filename uncapitalized.
Try to compress the filename by removing '.' and collapsing '..'.
make_relative fn_root fn Make fn relative to fn_root.
make_relative fn_root fn
Test if the filename is the current directory.
Set for Unix path.