FileSystemclass

A filesystem that can be accessed by the game.

objectFileSystem
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public static abstract sealed class Sandbox.FileSystem

Methods2

Showing 2 methods

public static Sandbox.BaseFileSystem CreateMemoryFileSystem()PUBLICSTATIC

Create a filesystem that exists only in memory

Returns:BaseFileSystem

public static string NormalizeFilename(string filepath)PUBLICSTATIC

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

ParameterTypeDescription
filepathstringThe file path to normalize
Returns:stringThe normalized file path

Properties3

Showing 3 properties

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

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

Returns:BaseFileSystem

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

All mounted content.

Returns:BaseFileSystem

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

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

Returns:BaseFileSystem

On this page