C# Class MicroMsg.sdk.utils.FileUtil

Mostra file Open project: zhxilin/WeChatSDK

Public Methods

Method Description
AppendToFile ( string fileName, string folderName, byte data ) : void
CreateDirAsync ( string strPath ) : Task
DeleteDir ( StorageFile isf, string path, bool bDeleteDir = true ) : void
DeleteFileAsync ( string fileName ) : Task
DirExistsAsync ( string path ) : Task
EmptyDir ( string strPath ) : bool
EmptyFile ( string strPath ) : bool
FileExistsAsync ( string path ) : Task
GetFileExistTimeAsync ( string path ) : Task
GetFileLengthAsync ( string path ) : Task
ReadFromFileAsync ( string fileName ) : Task
ReadFromFileAsync ( string path, int offset, int count ) : Task
WriteToFileAsync ( string fileName, string folderName, byte data, bool bCreateDir = false ) : Task

Method Details

AppendToFile() public static method

public static AppendToFile ( string fileName, string folderName, byte data ) : void
fileName string
folderName string
data byte
return void

CreateDirAsync() public static method

public static CreateDirAsync ( string strPath ) : Task
strPath string
return Task

DeleteDir() public static method

public static DeleteDir ( StorageFile isf, string path, bool bDeleteDir = true ) : void
isf Windows.Storage.StorageFile
path string
bDeleteDir bool
return void

DeleteFileAsync() public static method

public static DeleteFileAsync ( string fileName ) : Task
fileName string
return Task

DirExistsAsync() public static method

public static DirExistsAsync ( string path ) : Task
path string
return Task

EmptyDir() public static method

public static EmptyDir ( string strPath ) : bool
strPath string
return bool

EmptyFile() public static method

public static EmptyFile ( string strPath ) : bool
strPath string
return bool

FileExistsAsync() public static method

public static FileExistsAsync ( string path ) : Task
path string
return Task

GetFileExistTimeAsync() public static method

public static GetFileExistTimeAsync ( string path ) : Task
path string
return Task

GetFileLengthAsync() public static method

public static GetFileLengthAsync ( string path ) : Task
path string
return Task

ReadFromFileAsync() public static method

public static ReadFromFileAsync ( string fileName ) : Task
fileName string
return Task

ReadFromFileAsync() public static method

public static ReadFromFileAsync ( string path, int offset, int count ) : Task
path string
offset int
count int
return Task

WriteToFileAsync() public static method

public static WriteToFileAsync ( string fileName, string folderName, byte data, bool bCreateDir = false ) : Task
fileName string
folderName string
data byte
bCreateDir bool
return Task