RSX Code Reference
    Preparing search index...
    • rsx
    • FileSystemInternal

    Class FileSystemInternal

    Utility class for dealing with files.

    Index
    • Parameters

      • OptionalisInternalConstructor: boolean

      Returns FileSystemInternal

    • Makes a copy of a file or a folder in the specified path.

      Parameters

      • oldPath: FilePath

        Full path to the old file/folder.

      • newPath: FilePath

        Full path to the new file/folder.

      • OptionaloverwriteExisting: boolean

        (optional) If true, any existing file/folder at the new location will be overwritten, otherwise an exception will be thrown if a file/folder already exists.

      Returns void

    • Creates a folder at the specified path.

      Parameters

      • fullPath: FilePath

        Full path to a full folder to create.

      Returns void

    • Creates a folder at the specified path if it does not exist yet.

      Parameters

      • fullPath: FilePath

        Full path to a full folder to create.

      Returns boolean

      True if the directory exists or was created, false if the directory couldn't be created

    • Returns true if a file or a folder exists at the specified path.

      Parameters

      • fullPath: FilePath

        Full path to a file or folder.

      Returns boolean

    • Returns the path to the application data directory folder.

      Returns FilePath

    • Reads all text from the specified filePath.

      Parameters

      Returns string

    • Returns the path to the data directory (Currently working directory on Windows, AppName.app/Contents/Resources/ on MacOS).

      Returns FilePath

    • Returns all diretories in the specified folder.

      Parameters

      • filePath: FilePath

        The root folder to search.

      • recursive: boolean

        If false then only the direct children of the provided folder will be return, otherwise also includes entries from subfolders.

      Returns FilePath[]

      A list of all files.

    • Returns the path to the currently running executable.

      Returns FilePath

    • Returns all files in the specified folder.

      Parameters

      • filePath: FilePath

        The root folder to search.

      • recursive: boolean

        If false then only the direct children of the provided folder will be return, otherwise also includes entries from subfolders.

      Returns FilePath[]

      A list of all files.

    • Returns the size of a file in bytes.

      Parameters

      • fullPath: FilePath

        Full path to a file.

      Returns number

    • Returns the path to the framework library directory.

      Returns FilePath

    • Returns the last modified time of a file or a folder at the specified path.

      Parameters

      • fullPath: FilePath

        Full path to a file or a folder.

      Returns number

    • Returns the path to a directory where temporary files may be stored.

      Returns FilePath

    • Returns the path to a user directory where we can write persistent files. ex: Library/Application Support on MacOS

      Returns FilePath

    • Returns the path to the current user system documents folder.

      Returns FilePath

    • Returns the path to the currently working directory.

      Returns FilePath

    • Returns true if a folder exists at the specified path.

      Parameters

      • fullPath: FilePath

        Full path to a file or folder.

      Returns boolean

    • Returns whether the given directory (if exists) is writable.

      Parameters

      Returns boolean

    • Returns true if a file exists at the specified path.

      Parameters

      • fullPath: FilePath

        Full path to a file or folder.

      Returns boolean

    • Determines if the file has the read-only flag set.

      Parameters

      Returns boolean

    • Moves a file or a folder from one to another path. This can also be used as a rename operation.

      Parameters

      • oldPath: FilePath

        Full path to the old file/folder.

      • newPath: FilePath

        Full path to the new file/folder.

      • OptionaloverwriteExisting: boolean

        (optional) If true, any existing file/folder at the new location will be overwritten, otherwise an exception will be thrown if a file/folder already exists.

      Returns void

    • Deletes a file or a folder at the specified path.

      Parameters

      • fullPath: FilePath

        Full path to a file or a folder..

      • Optionalrecursively: boolean

        (optional) If true, folders will have their contents deleted as well. Otherwise an exception will be thrown for non-empty folders.

      Returns boolean

      True upon success.

    • Sets the read-only state of the file.

      Parameters

      • path: FilePath
      • isReadOnly: boolean
      • OptionalisRecursive: boolean

      Returns boolean

    • Writes the text contents to the specified filePath.

      Parameters

      Returns boolean

    • Writes the text contents to the specified filePath.

      Parameters

      Returns boolean

    • Asynchronously writes the text contents to the specified filePath.

      Parameters

      Returns UncertainAsyncOp<boolean, string>