C# Class MicroMsg.sdk.utils.FileUtil

Afficher le fichier Open project: zhxilin/WeChatSDK

Méthodes publiques

Méthode 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 méthode

public static AppendToFile ( string fileName, string folderName, byte data ) : void
fileName string
folderName string
data byte
Résultat void

CreateDirAsync() public static méthode

public static CreateDirAsync ( string strPath ) : Task
strPath string
Résultat Task

DeleteDir() public static méthode

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

DeleteFileAsync() public static méthode

public static DeleteFileAsync ( string fileName ) : Task
fileName string
Résultat Task

DirExistsAsync() public static méthode

public static DirExistsAsync ( string path ) : Task
path string
Résultat Task

EmptyDir() public static méthode

public static EmptyDir ( string strPath ) : bool
strPath string
Résultat bool

EmptyFile() public static méthode

public static EmptyFile ( string strPath ) : bool
strPath string
Résultat bool

FileExistsAsync() public static méthode

public static FileExistsAsync ( string path ) : Task
path string
Résultat Task

GetFileExistTimeAsync() public static méthode

public static GetFileExistTimeAsync ( string path ) : Task
path string
Résultat Task

GetFileLengthAsync() public static méthode

public static GetFileLengthAsync ( string path ) : Task
path string
Résultat Task

ReadFromFileAsync() public static méthode

public static ReadFromFileAsync ( string fileName ) : Task
fileName string
Résultat Task

ReadFromFileAsync() public static méthode

public static ReadFromFileAsync ( string path, int offset, int count ) : Task
path string
offset int
count int
Résultat Task

WriteToFileAsync() public static méthode

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