Apps
Components
Interfaces
All Files
Source Tree
source:
tos.lib.FS.Delete.nc
Component: Delete
Required Interfaces
IFileCoord
IFileMetaRead
IFileMetaWrite
IFileCheck
Debug
Provided Interfaces
FileDelete
Variables
const char *deleting
fileblock_t deletedFile
Function Index
command result_t
FileDelete.delete
(const char *filename)
Delete a file
event void
IFileMetaWrite.writeReady
(void)
event result_t
FileDelete.deleted
(fileresult_t result)
event void
IFileMetaRead.nextFile
(struct fileEntry *file, fileresult_t result)
void
deleteComplete
(fileresult_t result)
event void
IFileMetaWrite.writeCompleted
(fileresult_t result)
event void
IFileMetaWrite.blocksDeleted
(fileresult_t result)
Function Descriptions
FileDelete.delete
command result_t
FileDelete.delete
(const char *filename)
Delete a file
Parameters:
filename
- Name of file to delete. Must not be stack allocated.
Returns:
SUCCESS: attempt proceeds,
deleted
will be signaled
FAIL: filesystem is busy