The fdelete function deletes the file specified by filename. The filename may contain a drive prefix that specifies where the file exists. If the drive prefix is omitted the default drive specified in FILE_CONFIG.C configuration file is used. The following drive prefixes are allowed: | Drive Prefix | Description |
|---|
| "F:" | Embedded Flash drive. | | "S:" | SPI Flash drive. | | "R:" | Ram drive. | | "M:" | Memory Card drive. |
For the M: drive, a filename must contain a path, othervise a file from the root folder will be deleted. To delete a subfolder parameter filename, which is in this case a directory name, must contain also a terminating backslash character. The fdelete function is in the RL-FlashFS library. The prototype is defined in rtl.h. note - To maintain compatibility, rtl.h defines the identical function unlink as a macro that is substituted by the fdelete function.
|