Difference between revisions of "Legacy:Functions/Filesystem"

From Spherical
Jump to: navigation, search
(created)
 
(Filesystem: moved GetFileList into here)
 
Line 2: Line 2:
  
 
* [[API:GetDirectoryList|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.
 
* [[API:GetDirectoryList|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.
 +
* [[API:GetFileList|GetFileList]](''directory''): Gets an array of strings containing the filenames in 'directory'.
 +
* [[API:RemoveFile|RemoveFile]](''filename''): Deletes a file.
 
* [[API:Rename|Rename]](''old'', ''new''): Renames or moves a file or directory.
 
* [[API:Rename|Rename]](''old'', ''new''): Renames or moves a file or directory.
 
* [[API:CreateDirectory|CreateDirectory]](''directory''): Creates a new directory.
 
* [[API:CreateDirectory|CreateDirectory]](''directory''): Creates a new directory.
 
* [[API:RemoveDirectory|RemoveDirectory]](''directory''): Removes a directory.
 
* [[API:RemoveDirectory|RemoveDirectory]](''directory''): Removes a directory.

Latest revision as of 17:41, 22 May 2013

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.