Pathfinder  v3.0
The definitive Hacknet programmable modding system
Pathfinder.GameFilesystem.Filesystem Class Reference
+ Inheritance diagram for Pathfinder.GameFilesystem.Filesystem:

Public Member Functions

 Filesystem (Computer parent)
 
Directory SearchForDirectory (string path, bool ignoreRootSymbol=true, bool nullOut=false)
 Searchs for a Directory's path as far as possible. More...
 
File SearchForFile (string path, bool ignoreRootSymbol=true)
 Searchs for a File's path as far as possible. More...
 
IEnumerator< IFileObjectGetEnumerator ()
 

Static Public Member Functions

static Directory GetCurrentDirectory (OS os=null)
 
static Directory GetDirectoryAtDepth (int depth, OS os=null)
 Gets the Directory at the specified depth. More...
 
static implicit operator Filesystem (Computer c)
 

Public Attributes

override string Path => Name
 
override Filesystem Root => this
 
override FileType Type => FileType.Filesystem
 
Directory Directory => rootDirectory ?? (rootDirectory = new Directory(Object.root, this))
 

Static Public Attributes

static Filesystem PrimaryFilesystem => Utility.ClientComputer
 
static Directory CurrentDirectory => GetCurrentDirectory()
 

Properties

override string Name [get, set]
 
override int Index [get, set]
 
string IPAccess [get, set]
 
bool ShouldLogMultiplayer = null [get, set]
 

Constructor & Destructor Documentation

◆ Filesystem()

Pathfinder.GameFilesystem.Filesystem.Filesystem ( Computer  parent)

Member Function Documentation

◆ GetCurrentDirectory()

static Directory Pathfinder.GameFilesystem.Filesystem.GetCurrentDirectory ( OS  os = null)
static

◆ GetDirectoryAtDepth()

static Directory Pathfinder.GameFilesystem.Filesystem.GetDirectoryAtDepth ( int  depth,
OS  os = null 
)
static
Returns
The Directory at the inputed depth.
Parameters
depthThe depth to retrieve.
osThe OS responsible for the data relating to the Directory's depth.

◆ GetEnumerator()

IEnumerator<IFileObject> Pathfinder.GameFilesystem.Filesystem.GetEnumerator ( )

◆ operator Filesystem()

static implicit Pathfinder.GameFilesystem.Filesystem.operator Filesystem ( Computer  c)
static

◆ SearchForDirectory()

Directory Pathfinder.GameFilesystem.Filesystem.SearchForDirectory ( string  path,
bool  ignoreRootSymbol = true,
bool  nullOut = false 
)
Returns
The Directory to search for, or the deepest Directory found in the path, or null if nullOut is true.
Parameters
pathThe path to search by.
ignoreRootSymbolIf set to true ignores the root (/) symbol at the start.
nullOutIf set to true then nulls out on failure, otherwise returns furthest depth

◆ SearchForFile()

File Pathfinder.GameFilesystem.Filesystem.SearchForFile ( string  path,
bool  ignoreRootSymbol = true 
)
Returns
The File to search for, or null if not found.
Parameters
pathThe path to search by.
ignoreRootSymbolIf set to true ignores the root (/) symbol at the start.

Member Data Documentation

◆ CurrentDirectory

Directory Pathfinder.GameFilesystem.Filesystem.CurrentDirectory => GetCurrentDirectory()
static

◆ Directory

Directory Pathfinder.GameFilesystem.Filesystem.Directory => rootDirectory ?? (rootDirectory = new Directory(Object.root, this))

◆ Path

override string Pathfinder.GameFilesystem.Filesystem.Path => Name

◆ PrimaryFilesystem

Filesystem Pathfinder.GameFilesystem.Filesystem.PrimaryFilesystem => Utility.ClientComputer
static

◆ Root

override Filesystem Pathfinder.GameFilesystem.Filesystem.Root => this

◆ Type

override FileType Pathfinder.GameFilesystem.Filesystem.Type => FileType.Filesystem

Property Documentation

◆ Index

override int Pathfinder.GameFilesystem.Filesystem.Index
getset

◆ IPAccess

string Pathfinder.GameFilesystem.Filesystem.IPAccess
getset

◆ Name

override string Pathfinder.GameFilesystem.Filesystem.Name
getset

◆ ShouldLogMultiplayer

bool Pathfinder.GameFilesystem.Filesystem.ShouldLogMultiplayer = null
getset

The documentation for this class was generated from the following file: