Jump to main content

##

# 1.2.7.4.30 SYS_FS_DirectoryMake Function

## C

    SYS_FS_RESULT SYS_FS_DirectoryMake
    (
        const char* path
    );

## Summary

Creates a directory.

## Description

This function creates a new directory as per the specified path.

## Precondition

The disk has to be mounted before a directory could be made.

## Parameters

Param | Description
--- | ---
path | Path of the new directory

## 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.

## Example

    SYS_FS_RESULT res;

    res = SYS_FS_DirectoryMake("/mnt/mydrive/Dir1");

    if(res == SYS_FS_RES_FAILURE)
    {
        // Directory make failed
    }

## Remarks

None.