1.2.7.4.30 SYS_FS_DirectoryMake Function
1.2.7.4.30 C
SYS_FS_RESULT SYS_FS_DirectoryMake
(
const char* path
);
1.2.7.4.30 Summary
Creates a directory.
1.2.7.4.30 Description
This function creates a new directory as per the specified path.
1.2.7.4.30 Precondition
The disk has to be mounted before a directory could be made.
1.2.7.4.30 Parameters
| Parameters | Description |
|---|---|
| path | Path of the new directory |
1.2.7.4.30 Returns
SYS_FS_RES_SUCCESS - Indicates that the creation of the directory was successful.
SYS_FS_RES_FAILURE - Indicates that the creation of the directory was unsuccessful. The reason for the failure can be retrieved with SYS_FS_Error.
1.2.7.4.30 Example
SYS_FS_RESULT res;
res = SYS_FS_DirectoryMake("/mnt/mydrive/Dir1");
if(res == SYS_FS_RES_FAILURE)
{
// Directory make failed
}
1.2.7.4.30 Remarks
None.
