Barotrauma Client Doc
Barotrauma.LuaCsFile Class Reference

Static Public Member Functions

static bool CanReadFromPath (string path)
 
static bool CanWriteToPath (string path)
 
static bool IsPathAllowedException (string path, bool write=true, LuaCsMessageOrigin origin=LuaCsMessageOrigin.Unknown)
 
static bool IsPathAllowedLuaException (string path, bool write=true)
 
static bool IsPathAllowedCsException (string path, bool write=true)
 
static string Read (string path)
 
static void Write (string path, string text)
 
static void Delete (string path)
 
static void DeleteDirectory (string path)
 
static void Move (string path, string destination)
 
static FileStream OpenRead (string path)
 
static FileStream OpenWrite (string path)
 
static bool Exists (string path)
 
static bool CreateDirectory (string path)
 
static bool DirectoryExists (string path)
 
static string[] GetFiles (string path)
 
static string[] GetDirectories (string path)
 
static string[] DirSearch (string sDir)
 

Detailed Description

Definition at line 17 of file LuaCsUtility.cs.

Member Function Documentation

◆ CanReadFromPath()

static bool Barotrauma.LuaCsFile.CanReadFromPath ( string  path)
static

Definition at line 19 of file LuaCsUtility.cs.

◆ CanWriteToPath()

static bool Barotrauma.LuaCsFile.CanWriteToPath ( string  path)
static

Definition at line 52 of file LuaCsUtility.cs.

◆ CreateDirectory()

static bool Barotrauma.LuaCsFile.CreateDirectory ( string  path)
static

Definition at line 179 of file LuaCsUtility.cs.

◆ Delete()

static void Barotrauma.LuaCsFile.Delete ( string  path)
static

Definition at line 131 of file LuaCsUtility.cs.

◆ DeleteDirectory()

static void Barotrauma.LuaCsFile.DeleteDirectory ( string  path)
static

Definition at line 139 of file LuaCsUtility.cs.

◆ DirectoryExists()

static bool Barotrauma.LuaCsFile.DirectoryExists ( string  path)
static

Definition at line 189 of file LuaCsUtility.cs.

◆ DirSearch()

static string [] Barotrauma.LuaCsFile.DirSearch ( string  sDir)
static

Definition at line 213 of file LuaCsUtility.cs.

◆ Exists()

static bool Barotrauma.LuaCsFile.Exists ( string  path)
static

Definition at line 171 of file LuaCsUtility.cs.

◆ GetDirectories()

static string [] Barotrauma.LuaCsFile.GetDirectories ( string  path)
static

Definition at line 205 of file LuaCsUtility.cs.

◆ GetFiles()

static string [] Barotrauma.LuaCsFile.GetFiles ( string  path)
static

Definition at line 197 of file LuaCsUtility.cs.

◆ IsPathAllowedCsException()

static bool Barotrauma.LuaCsFile.IsPathAllowedCsException ( string  path,
bool  write = true 
)
static

◆ IsPathAllowedException()

static bool Barotrauma.LuaCsFile.IsPathAllowedException ( string  path,
bool  write = true,
LuaCsMessageOrigin  origin = LuaCsMessageOrigin.Unknown 
)
static

Definition at line 84 of file LuaCsUtility.cs.

◆ IsPathAllowedLuaException()

static bool Barotrauma.LuaCsFile.IsPathAllowedLuaException ( string  path,
bool  write = true 
)
static

◆ Move()

static void Barotrauma.LuaCsFile.Move ( string  path,
string  destination 
)
static

Definition at line 147 of file LuaCsUtility.cs.

◆ OpenRead()

static FileStream Barotrauma.LuaCsFile.OpenRead ( string  path)
static

Definition at line 155 of file LuaCsUtility.cs.

◆ OpenWrite()

static FileStream Barotrauma.LuaCsFile.OpenWrite ( string  path)
static

Definition at line 162 of file LuaCsUtility.cs.

◆ Read()

static string Barotrauma.LuaCsFile.Read ( string  path)
static

Definition at line 115 of file LuaCsUtility.cs.

◆ Write()

static void Barotrauma.LuaCsFile.Write ( string  path,
string  text 
)
static

Definition at line 123 of file LuaCsUtility.cs.