Maestro Audio Framework  v 1.0
NXP Semiconductors
file_utils.h File Reference

This file provides file manipulation functions. More...

#include "osa_common.h"

Functions

uint32_t file_getsize (void *fd)
 file_getsize More...
 
bool file_exists (const char *filename)
 file_exists More...
 
bool dir_exists (const char *dirname)
 dir_exists More...
 

Function Documentation

◆ file_getsize()

uint32_t file_getsize ( void *  fd)

Function to get the device file size.

Parameters
fdFile handle
Returns
size of file in bytes

◆ file_exists()

bool file_exists ( const char *  filename)

Returns true if the given file exists on disk and false if not

Parameters
filenameName and path of the file to test for existence
Returns
true or false

◆ dir_exists()

bool dir_exists ( const char *  dirname)

Returns true if the given directory exists on disk and false if not

Parameters
dirnameName and path of the directory to test for existence
Returns
true or false