Api Sandbox FileSystem
class

FileSystem

public static abstract sealed class FileSystem

A filesystem that can be accessed by the game.

Properties

Name Type Description
Mounted static BaseFileSystem All mounted content.
Data static BaseFileSystem A subset of OrganizationData for custom gamemode data.
OrganizationData static BaseFileSystem A filesystem for custom data, per gamemode's organization.

Methods

static String NormalizeFilename(String filepath)

Normalizes given file path so the game's filesystem can understand it. Fixes slashes and lowercases the file path.

filepath — The file path to normalize
returns — The normalized file path
static BaseFileSystem CreateMemoryFileSystem()

Create a filesystem that exists only in memory

Fields

Name Type Description
Cache static KeyStore A cached keystore that can be used for anything. This is stored in a global cache folder, and may be deleted at any time.
Assembly: Sandbox.Engine Namespace: Sandbox Full Name: Sandbox.FileSystem