renamePath method

bool renamePath(
  1. String oldpath,
  2. String newpath
)

Rename a file or directory in a writable storage container.

\param storage a storage container. \param oldpath the old path. \param newpath the new path. \returns true on success or false on failure; call SDL_GetError() for more information.

\since This function is available since SDL 3.2.0.

\sa SDL_StorageReady

extern SDL_DECLSPEC bool SDLCALL SDL_RenameStoragePath(SDL_Storage *storage, const char *oldpath, const char *newpath)

Implementation

bool renamePath(String oldpath, String newpath) =>
    sdlRenameStoragePath(this, oldpath, newpath);