directory.c
query_directory
Synopsis
Parameters
object ob
- The object to query the directory of.
Returns
string
- The directory path of the object.
Description
Returns the directory of the given object. If no object is provided, it defaults to the previous object.
assure_dir
Synopsis
Parameters
string path
- The path of the directory to ensure.
Returns
int
- 1 if the directory exists or was created successfully, otherwise 0.
Description
Ensures that a directory exists by creating it and its parent directories if necessary.