s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News
jams
Workshop
Steam
open_in_newSteam Workshop
Assets
view_in_arModels textureMaterials apparelClothing
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
Get s&box
Sign in with Steam
Api
Classes
FileSystemBrowserSource
chevron_left Classes
class
FileSystemBrowserSource

Constructors

functionsFileSystemBrowserSource

Properties

data_objectRootName

Methods

functionsGetDetailsfunctionsGetFilesfunctionsGetFolders
FileSystemBrowserSource
Browses a game filesystem such as FileSystem.Mounted or FileSystem.Data.
class Sandbox.UI .
sealedSandbox.Engine

build Constructors 1

FileSystemBrowserSource (fileSystem, rootName)
Uses the supplied filesystem for folder listings and file searches.

data_object Properties 1

RootName
string
Name shown at the top of the folder tree and breadcrumbs.

functions Methods 3

GetDetails (path, isFolder)
ValueTuple`2
Reads details on demand. A folder has no file size.
GetFiles (folder, recursive)
IEnumerable`1
Gets files from this folder, optionally including its descendants.
GetFolders (folder)
IEnumerable`1
Gets the folders directly beneath the given path.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter