Platform independent filesystem path routines.
s_file_exists | Query if a file exists. |
s_path_combine | Combine a base path and a file name. |
s_get_base_path | Get the base path of the given absolute file name. |
Query if a file exists.
Also if the file can be manipulated in a certain mode (i.e. reading, writing, ...)
Parameters: |
|
---|---|
Return: | TRUE if the file exists and can be manipulated with mode, or FALSE. |
Combine a base path and a file name.
If the file name is absolute then just a copy of it is returned. Otherwise, build a path to it by considering it is relative to base_path. URL are supported.
Parameters: |
|
---|---|
Return: | The combined base and file name. |
Note: | Caller is responsible for memory of returned string. |
Get the base path of the given absolute file name.
Parameters: |
|
---|---|
Return: | The base path of the given absolute file name. |
Note: | Caller is responsible for memory of returned string. |