FF_isDirEmpty()

From FullFAT
Jump to: navigation, search

Returns FF_TRUE or FF_FALSE depending on whether the specified directory is empty or not.

Contents

Prototype

FF_T_BOOL FF_isDirEmpty(FF_IOMAN *pIoman, const FF_T_INT8 *Path)

Back to API.

Parameters

pIoman

Pointer to an FF_IOMAN object, as returned from the FF_CreateIOMAN() function.

path

Absolute path of the directory to be tested.

Return Value

  • FF_TRUE if dir is empty.
  • FF_FALSE if dir contains atleast a single item.
  • FF_FALSE if pIoman was NULL.

Example

#include "fullfat.h"
 
if(FF_isDirEmpty()) {
    // Dir is empty
} else {
    // Dir contains something.
}

Back to API.

See Also

Personal tools