Classes | Functions
Directory.h File Reference

Provides the BDirectory class. More...

Classes

class  BDirectory
 A directory in the file system. More...
 

Functions

status_t create_directory (const char *path, mode_t mode)
 Creates all missing directories along a given path. More...
 

Detailed Description

Provides the BDirectory class.

Function Documentation

◆ create_directory()

status_t create_directory ( const char *  path,
mode_t  mode 
)

Creates all missing directories along a given path.

Parameters
pathThe directory path name.
modeA permission specification, which shall be used for the newly created directories.
Returns
A status code.
Return values
B_OKEverything went fine.
B_BAD_VALUENULL path.
B_ENTRY_NOT_FOUNDpath does not refer to a possible entry.
B_PERMISSION_DENIEDDirectory permissions didn't allow operation.
B_NO_MEMORYInsufficient memory for operation.
B_LINK_LIMITIndicates a cyclic loop within the file system.
B_BUSYA node was busy.
B_FILE_ERRORA general file error.
B_NOT_A_DIRECTORYAn entry other than a directory with that name already exists.
B_NO_MORE_FDSThe application has run out of file descriptors.
Since
BeOS R3