copyFile method

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

Copy a file 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_CopyStorageFile(SDL_Storage *storage, const char *oldpath, const char *newpath)

Implementation

bool copyFile(String oldpath, String newpath) =>
    sdlCopyStorageFile(this, oldpath, newpath);