Awkl
Loading...
Searching...
No Matches
path.awk File Reference

Namespaces

namespace  path
 Filesystem path related operations for different platforms.
 

Functions

unassigned path::osSeps (string p)
 Recompute path configurations for a given gawk platform.
 
number path::isSep (char c)
 Check if a character is a path separator.
 
string path::basename (string p)
 Get the last component of a pathname.
 
string path::dirname (string p)
 Gets the parent directory name of a pathname.
 
unassigned path::splitExt (string p, array< string > R)
 Splits a path into its file path and its extension.
 
string path::extension (string p)
 Get the extension portion of a pathname.
 
number path::isAbs (string p)
 Check whether a pathname is absolute.
 
number path::isRel (string p)
 Check whether a pathname is relative.
 
unassigned path::splitDrive (string p, array< string > R)
 Split a pathname into its drive and and path components.
 
number path::hasDevice (string p)
 Check whether a pathname has a device prefix.
 
string path::root (string p)
 Get the root directory of a path.
 
number path::isRootDir (string p)
 Check whether a path is the root directory.
 
number path::isCrossValidName (string f)
 Check if a filename is valid for cross-platform regular use.
 
number path::isValidName (string f)
 Check if a filename is valid for regular use in the current path platform.
 
string path::normcase (string p)
 Normalize the casing and separator of a pathname for the current platform.
 
string path::normalize (string p, number keep_f=0, number case_f=1)
 Normalize a pathname.
 

Variables

string path::sep
 File path separator.
 
string path::altsep
 Alternative file path separator.
 
string path::delim
 Search path separator.
 
string path::curdir
 Current directory symbol.
 
string path::pardir
 Parent directory symbol.
 
string path::extsep
 Extension symbol.
 
string path::cased
 Whether file system is case sensitive or not.
 
string path::droot
 Whether double slash // is a distinct file system root or not.
 
string path::drel
 Whether a drive letter can be in a relative path or not.