Directory API

API Reference

Creating Directories

To create a directory at a specific location, call le_dir_Make() passing in the path name of the directory to create. All directories in the path name except the last directory (the directory to be created) must exist prior to calling le_dir_Make().

To create all directories in a specified path use le_dir_MakePath().

With both le_dir_Make() and le_dir_MakePath() the calling process must have write and search permissions on all directories in the path.

Removing Directories

To remove a directory and everything in the directory (including all files and sub-directories) use le_dir_RemoveRecursive().

Reading Directories

To read the contents of a directory use the POSIX function openDir().