CreateDIR Function

Microchip MDD File System Interface

MDDFS Interface Library Help
CreateDIR Function
C
int CreateDIR(
    char * path
);
Description

The CreateDIR function is a helper function for the mkdirhelper function. The CreateDIR function will create a new file entry for a directory and assign a cluster to it. It will erase the cluster and write a dot and dotdot entry to it.

Preconditions

This function should not be called by the user.

Parameters
Parameters 
Description 
path 
The name of the dir to create 
Return Values
Return Values 
Description 
TRUE 
Directory was created successfully 
Directory could not be created. 
Side Effects

Any unwritten data in the data buffer or the FAT buffer will be written to the device.

Remarks

None.

Microchip MDD File System Interface 1.2.0 - [Aug 18, 2008]
Copyright © 2008 Microchip Technology, Inc.  All rights reserved.