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

Public Member Functions

 File (FileEntry vanila, Directory parent)
 
void UpdateFileSize ()
 Updates the size of the File according to the standard set in Hacknet. More...
 
File MoveTo (Directory to)
 Moves the File to a different Directory. More...
 

Public Attributes

sealed override Filesystem Root => Parent.Root
 Gets the root Filesystem the File is within. More...
 
sealed override FileType Type => FileType.File
 Returns FileType.File More...
 
string Head => Object.head()
 Retrieves the head of the file, or the first 50 characters of the File's data before a newline. More...
 

Properties

sealed override string Name [get, set]
 Gets or sets the File's name. (logs as move if change is attempted) More...
 
sealed override int Index [get, set]
 Gets the index inside its parent's respective list More...
 
override string Path [get, set]
 Gets or sets the File's full path, setting changes the File's parent. More...
 
string Data [get, set]
 Gets or sets the File's data. More...
 
int Size [get, set]
 Gets or sets the File's size. More...
 
int TimeCreated [get, set]
 

Constructor & Destructor Documentation

◆ File()

Pathfinder.GameFilesystem.File.File ( FileEntry  vanila,
Directory  parent 
)

Member Function Documentation

◆ MoveTo()

File Pathfinder.GameFilesystem.File.MoveTo ( Directory  to)
Returns
The File after its been moved.
Parameters
toThe Directory to move the File to.

◆ UpdateFileSize()

void Pathfinder.GameFilesystem.File.UpdateFileSize ( )

Member Data Documentation

◆ Head

string Pathfinder.GameFilesystem.File.Head => Object.head()

◆ Root

sealed override Filesystem Pathfinder.GameFilesystem.File.Root => Parent.Root

◆ Type

sealed override FileType Pathfinder.GameFilesystem.File.Type => FileType.File

Property Documentation

◆ Data

string Pathfinder.GameFilesystem.File.Data
getset

◆ Index

sealed override int Pathfinder.GameFilesystem.File.Index
getset

◆ Name

sealed override string Pathfinder.GameFilesystem.File.Name
getset

◆ Path

override string Pathfinder.GameFilesystem.File.Path
getset

◆ Size

int Pathfinder.GameFilesystem.File.Size
getset

◆ TimeCreated

int Pathfinder.GameFilesystem.File.TimeCreated
getset

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