The frename function changes the filename of the oldname to newname. oldname must be the name of an existing file and newname must be a valid filename that is not the name of an existing file. Both oldname and newname may 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. If oldname and newname include a drive prefix, the prefix must refer to the same medium. The following drive prefixes are allowed: | Drive Prefix | Description |
|---|
| "F:" | Embedded Flash drive. | | "S:" | SPI Flash drive. | | "R:" | Ram drive. | | "M:" | Memory Card drive. |
The frename function is in the RL-FlashFS library. The prototype is defined in rtl.h. note - For compatibility, the rename function is also defined.
|