| FolderRename | Function (ROM Call 0x6A)

vat.h

short FolderRename (const char *SrcName, const char *DestName);

Renames a folder.

FolderRename renames the folder SrcName to the name DestName. Returns TRUE if the operation was successful (SrcName must exist and must be a folder, and DestName must not exist), else returns FALSE. See SYMSTR for rules about folder names. Note that this routine does not check for reserved names, and may throw an error if renaming to or from a reserved name (e.g. "main"), or if any variable in the given folder is in-use.

Uses: FolderCount, IsMainFolderStr, SymCmp, SymCpy, TokToStrN, HeapRealloc, ER_catch, ER_success, ER_throwVar, next_expression_index, push_parse_text, top_estack, memmove, strcat, strchr, OSDisableBreak, OSEnableBreak, _mu16u16, _ds32s32
Used by: ROM Call 0x437