/
Deleting Files and Directories
Deleting Files and Directories
A file or directory can be deleted using FSEntry_Del()
:
FSEntry_Del("\\dir", /* entry name */ FS_ENTRY_TYPE_DIR, /* means entry must be a dir */ &err); /* return error */
The second argument, entry_type, restricts deletion to specific types. If it is FS_ENTRY_TYPE_DIR
, then the entry specified by the first argument must be a directory; if it is a file, an error will be returned. If it is FS_ENTRY_TYPE_FILE
, then the entry must
be a file. If it is FS_ENTRY_TYPE_ANY
, then the entry will be deleted whether it is a file or a directory.
, multiple selections available,
Related content
Creating New Files and Directories
Creating New Files and Directories
More like this
fs_rmdir()
fs_rmdir()
More like this
fs_remove()
fs_remove()
More like this
File and Directory Attributes
File and Directory Attributes
More like this
FSEntry_Del()
FSEntry_Del()
More like this
FSDir_Close()
FSDir_Close()
More like this