1.2.7.4.31 SYS_FS_DirectoryChange Function

1.2.7.4.31 C

SYS_FS_RESULT SYS_FS_DirectoryChange
(
    const char* path
);

1.2.7.4.31 Summary

Changes to a the directory specified.

1.2.7.4.31 Description

This function changes the present directory to a new directory.

1.2.7.4.31 Precondition

The disk has to be mounted and the directory to be changed must exist.

1.2.7.4.31 Parameters

ParametersDescription
pathPath of the directory to be changed to

1.2.7.4.31 Returns

SYS_FS_RES_SUCCESS - Indicates that the directory change operation was successful.

SYS_FS_RES_FAILURE - Indicates that the directory change operation was unsuccessful. The reason for the failure can be retrieved with SYS_FS_Error.

1.2.7.4.31 Example

SYS_FS_RESULT res;

res = SYS_FS_DirectoryChange("Dir1");

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

1.2.7.4.31 Remarks

None.