Legacy:Functions/Filesystem

From Spherical
Jump to: navigation, search

Filesystem

  • GetDirectoryList(directory) directory = directory in which to enumerate directories, the current game's directory if not specified. Returns an array of strings, which contain the directory names that reside in the directory directory of the game.
  • GetFileList(directory): Gets an array of strings containing the filenames in 'directory'.
  • RemoveFile(filename): Deletes a file.
  • Rename(old, new): Renames or moves a file or directory.
  • CreateDirectory(directory): Creates a new directory.
  • RemoveDirectory(directory): Removes a directory.