Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
Engine.Storage

静态 Public 成员函数

static void Initialize ()
static bool FileExists (string path)
static bool DirectoryExists (string path)
static long GetFileSize (string path)
static DateTime GetFileLastWriteTime (string path)
static Stream OpenFile (string path, OpenFileMode openFileMode)
static void DeleteFile (string path)
static void CopyFile (string sourcePath, string destinationPath)
static void MoveFile (string sourcePath, string destinationPath)
static void CreateDirectory (string path)
static void DeleteDirectory (string path)
static void DeleteDirectory (string path, bool recursive)
static IEnumerable< string > ListFileNames (string path)
static IEnumerable< string > ListDirectoryNames (string path)
static string ReadAllText (string path)
static string ReadAllText (string path, Encoding encoding)
static void WriteAllText (string path, string text)
static void WriteAllText (string path, string text, Encoding encoding)
static byte[] ReadAllBytes (string path)
static void WriteAllBytes (string path, byte[] bytes)
static string GetSystemPath (string path)
static string GetExtension (string path)
static string GetFileName (string path)
static string GetFileNameWithoutExtension (string path)
static string GetDirectoryName (string path)
static string CombinePaths (params string[] paths)
static string ChangeExtension (string path, string extension)
static string GetAppDirectory (bool failIfApp)
static string GetDataDirectory (bool writeAccess)
static string ProcessPath (string path, bool writeAccess, bool failIfApp)
static void MoveDirectory (string path, string newPath)
static void DeleteDirectoryRecursive (string path)
static DirectoryInfo GetDirectoryInfo (string path)
static FileInfo GetFileInfo (string path)
static string SanitizeFileName (string filename, string replacement="-")
static void OpenFileWithExternalApplication (string path, string chooserTitle=null, string mimeType=null)
static async Task ShareFile (string path, string chooserTitle=null, string mimeType=null)
static async Task<(Stream, string)> ChooseFile (string title=null, KeyValuePair< string, string[]>[] filters=null, string defaultPath=null, OpenFileMode mode=OpenFileMode.Read)

静态 Public 属性

static char[] InvalidFileNameChars

属性

static long FreeSpace [get]

静态 Private 属性

const bool m_isAndroidPlatform = false
static bool m_dataDirectoryCreated
static object m_dataDirectoryCreationLock = new()

详细描述

在文件 Storage.cs 第 24 行定义.

成员函数说明

◆ ChangeExtension()

string Engine.Storage.ChangeExtension ( string path,
string extension )
static

在文件 Storage.cs 第 228 行定义.

这是这个函数的调用关系图:

◆ ChooseFile()

async Task<(Stream, string)> Engine.Storage.ChooseFile ( string title = null,
KeyValuePair< string, string[]>[] filters = null,
string defaultPath = null,
OpenFileMode mode = OpenFileMode::Read )
static

在文件 Storage.cs 第 435 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ CombinePaths()

string Engine.Storage.CombinePaths ( params string[] paths)
static

在文件 Storage.cs 第 214 行定义.

这是这个函数的调用关系图:

◆ CopyFile()

void Engine.Storage.CopyFile ( string sourcePath,
string destinationPath )
static

在文件 Storage.cs 第 122 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ CreateDirectory()

void Engine.Storage.CreateDirectory ( string path)
static

在文件 Storage.cs 第 135 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ DeleteDirectory() [1/2]

void Engine.Storage.DeleteDirectory ( string path)
static

在文件 Storage.cs 第 139 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ DeleteDirectory() [2/2]

void Engine.Storage.DeleteDirectory ( string path,
bool recursive )
static

在文件 Storage.cs 第 143 行定义.

函数调用图:

◆ DeleteDirectoryRecursive()

void Engine.Storage.DeleteDirectoryRecursive ( string path)
static

在文件 Storage.cs 第 352 行定义.

这是这个函数的调用关系图:

◆ DeleteFile()

void Engine.Storage.DeleteFile ( string path)
static

在文件 Storage.cs 第 118 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ DirectoryExists()

bool Engine.Storage.DirectoryExists ( string path)
static

在文件 Storage.cs 第 87 行定义.

这是这个函数的调用关系图:

◆ FileExists()

bool Engine.Storage.FileExists ( string path)
static

在文件 Storage.cs 第 77 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ GetAppDirectory()

string Engine.Storage.GetAppDirectory ( bool failIfApp)
static

在文件 Storage.cs 第 290 行定义.

这是这个函数的调用关系图:

◆ GetDataDirectory()

string Engine.Storage.GetDataDirectory ( bool writeAccess)
static

在文件 Storage.cs 第 296 行定义.

这是这个函数的调用关系图:

◆ GetDirectoryInfo()

DirectoryInfo Engine.Storage.GetDirectoryInfo ( string path)
static

在文件 Storage.cs 第 354 行定义.

◆ GetDirectoryName()

string Engine.Storage.GetDirectoryName ( string path)
static

在文件 Storage.cs 第 209 行定义.

这是这个函数的调用关系图:

◆ GetExtension()

string Engine.Storage.GetExtension ( string path)
static

在文件 Storage.cs 第 190 行定义.

这是这个函数的调用关系图:

◆ GetFileInfo()

FileInfo Engine.Storage.GetFileInfo ( string path)
static

在文件 Storage.cs 第 356 行定义.

这是这个函数的调用关系图:

◆ GetFileLastWriteTime()

DateTime Engine.Storage.GetFileLastWriteTime ( string path)
static

在文件 Storage.cs 第 91 行定义.

这是这个函数的调用关系图:

◆ GetFileName()

string Engine.Storage.GetFileName ( string path)
static

在文件 Storage.cs 第 198 行定义.

这是这个函数的调用关系图:

◆ GetFileNameWithoutExtension()

string Engine.Storage.GetFileNameWithoutExtension ( string path)
static

在文件 Storage.cs 第 203 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ GetFileSize()

long Engine.Storage.GetFileSize ( string path)
static

在文件 Storage.cs 第 89 行定义.

这是这个函数的调用关系图:

◆ GetSystemPath()

string Engine.Storage.GetSystemPath ( string path)
static

在文件 Storage.cs 第 188 行定义.

这是这个函数的调用关系图:

◆ Initialize()

void Engine.Storage.Initialize ( )
static

在文件 Storage.cs 第 33 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ ListDirectoryNames()

IEnumerable< string > Engine.Storage.ListDirectoryNames ( string path)
static

在文件 Storage.cs 第 150 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ ListFileNames()

IEnumerable< string > Engine.Storage.ListFileNames ( string path)
static

在文件 Storage.cs 第 147 行定义.

这是这个函数的调用关系图:

◆ MoveDirectory()

void Engine.Storage.MoveDirectory ( string path,
string newPath )
static

在文件 Storage.cs 第 350 行定义.

这是这个函数的调用关系图:

◆ MoveFile()

void Engine.Storage.MoveFile ( string sourcePath,
string destinationPath )
static

在文件 Storage.cs 第 128 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ OpenFile()

Stream Engine.Storage.OpenFile ( string path,
OpenFileMode openFileMode )
static

在文件 Storage.cs 第 93 行定义.

函数调用图:

◆ OpenFileWithExternalApplication()

void Engine.Storage.OpenFileWithExternalApplication ( string path,
string chooserTitle = null,
string mimeType = null )
static

在文件 Storage.cs 第 387 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ ProcessPath()

string Engine.Storage.ProcessPath ( string path,
bool writeAccess,
bool failIfApp )
static

在文件 Storage.cs 第 314 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ ReadAllBytes()

byte[] Engine.Storage.ReadAllBytes ( string path)
static

在文件 Storage.cs 第 178 行定义.

函数调用图:

◆ ReadAllText() [1/2]

string Engine.Storage.ReadAllText ( string path)
static

在文件 Storage.cs 第 162 行定义.

这是这个函数的调用关系图:

◆ ReadAllText() [2/2]

string Engine.Storage.ReadAllText ( string path,
Encoding encoding )
static

在文件 Storage.cs 第 164 行定义.

函数调用图:

◆ SanitizeFileName()

string Engine.Storage.SanitizeFileName ( string filename,
string replacement = "-" )
static

在文件 Storage.cs 第 371 行定义.

这是这个函数的调用关系图:

◆ ShareFile()

async Task Engine.Storage.ShareFile ( string path,
string chooserTitle = null,
string mimeType = null )
static

在文件 Storage.cs 第 409 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ WriteAllBytes()

void Engine.Storage.WriteAllBytes ( string path,
byte[] bytes )
static

在文件 Storage.cs 第 183 行定义.

函数调用图:

◆ WriteAllText() [1/2]

void Engine.Storage.WriteAllText ( string path,
string text )
static

在文件 Storage.cs 第 169 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ WriteAllText() [2/2]

void Engine.Storage.WriteAllText ( string path,
string text,
Encoding encoding )
static

在文件 Storage.cs 第 173 行定义.

函数调用图:

类成员变量说明

◆ InvalidFileNameChars

char [] Engine.Storage.InvalidFileNameChars
static
初始值:
= [
'\\',
'/',
':',
'*',
'?',
'"',
'<',
'>',
'|',
'\0'
]

在文件 Storage.cs 第 358 行定义.

◆ m_dataDirectoryCreated

bool Engine.Storage.m_dataDirectoryCreated
staticprivate

在文件 Storage.cs 第 27 行定义.

◆ m_dataDirectoryCreationLock

object Engine.Storage.m_dataDirectoryCreationLock = new()
staticprivate

在文件 Storage.cs 第 28 行定义.

◆ m_isAndroidPlatform

const bool Engine.Storage.m_isAndroidPlatform = false
staticprivate

在文件 Storage.cs 第 26 行定义.

属性说明

◆ FreeSpace

long Engine.Storage.FreeSpace
staticget

在文件 Storage.cs 第 39 行定义.


该类的文档由以下文件生成:
  • E:/sc/doxygen/SurvivalcraftApi 1.8.2.3/Engine/Engine/Storage.cs