1. Home
  2. Docs
  3. Save Game Pro
  4. Scripting API
  5. SaveGame.Move

SaveGame.Move

Description

Moves a identifier to another identifier, also, can be used for Renaming.

You can move folders and files, here is the conditions:

If the first identifier is a file and the second one is a file and the second file is exists, then the second identifier will be replaced.

If the first identifier is a file and the second one isĀ  a file and the second file is not exists, then the first identifier will be renamed.

If the first identifier is a file and the second one is a folder, then the first identifier will be moved into the folder.

If the first identifier is a folder and the second one is a folder and the second folder is exists, then the first identifier will be moved into the second folder.

If the first identifier is a folder and the second one is a folder and the second folder is not exists, then the first identifier will be renamed.

Parameters

NameTypeDescriptionRequired
fromIdentifierstringThe identifier to move from.required
toIdentifierstringThe identifier to move to.required
settingsSaveGameSettingsThe optional settings.optional

Examples

Moving Simple Identifier

Moving to Folder

Moving Folder

Moving to Folder with Custom Name

 

Was this article helpful to you? Yes No

How can we help?