s&box docs

public static abstract sealed class Sandbox.FileSystem

A filesystem that can be accessed by the game.

Broader workflow and conceptual references connected to this API.

Methods

Showing 2 methods

public static Sandbox.BaseFileSystem CreateMemoryFileSystem()

Create a filesystem that exists only in memory

public static string NormalizeFilename(string filepath)

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

Parameters

  • filepath: The file path to normalize

Returns

The normalized file path

Properties

Showing 3 properties

public static Sandbox.BaseFileSystem Sandbox.FileSystem.Data { get; set; }

A subset of `Sandbox.FileSystem.OrganizationData` for custom gamemode data.

public static Sandbox.BaseFileSystem Sandbox.FileSystem.Mounted { get; set; }

All mounted content.

public static Sandbox.BaseFileSystem Sandbox.FileSystem.OrganizationData { get; set; }

A filesystem for custom data, per gamemode's organization.

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.FileSystem

On this page