C# Class Hugula.Utils.FileHelper

显示文件 Open project: tenvick/hugula Class Usage Examples

Public Methods

Method Description
ChangePersistentFileName ( string oldName, string newname ) : bool

Changes the name of the persistent file.

CheckCreateFilePathDirectory ( string filePath ) : void

检测文件路径文件夹是否存在

ComputeCrc32 ( string path ) : uint

Computes the crc32.

DeletePersistentDirectory ( string relative = null ) : void

Delete the persistent Directory

DeletePersistentFile ( string fileName ) : void

Deletes the persistent file.

PersistentFileExists ( string abpath ) : bool

the Persistents file is Exists.

ReadPersistentFile ( string fileName ) : byte[]

Reads the persistent file.

SavePersistentFile ( Array context, string fileName ) : void

Saves the file.

SavePersistentFile ( string context, string fileName ) : void

Saves the persistent file.

UnpackConfigAssetBundleFn ( AssetBundle ab, LuaFunction luaFn ) : void

Method Details

ChangePersistentFileName() public static method

Changes the name of the persistent file.
public static ChangePersistentFileName ( string oldName, string newname ) : bool
oldName string Old name.
newname string Newname.
return bool

CheckCreateFilePathDirectory() public static method

检测文件路径文件夹是否存在
public static CheckCreateFilePathDirectory ( string filePath ) : void
filePath string
return void

ComputeCrc32() public static method

Computes the crc32.
public static ComputeCrc32 ( string path ) : uint
path string Path.
return uint

DeletePersistentDirectory() public static method

Delete the persistent Directory
public static DeletePersistentDirectory ( string relative = null ) : void
relative string
return void

DeletePersistentFile() public static method

Deletes the persistent file.
public static DeletePersistentFile ( string fileName ) : void
fileName string File name.
return void

PersistentFileExists() public static method

the Persistents file is Exists.
public static PersistentFileExists ( string abpath ) : bool
abpath string Abpath.
return bool

ReadPersistentFile() public static method

Reads the persistent file.
public static ReadPersistentFile ( string fileName ) : byte[]
fileName string File name.
return byte[]

SavePersistentFile() public static method

Saves the file.
public static SavePersistentFile ( Array context, string fileName ) : void
context System.Array Context.
fileName string File name.
return void

SavePersistentFile() public static method

Saves the persistent file.
public static SavePersistentFile ( string context, string fileName ) : void
context string Context.
fileName string File name.
return void

UnpackConfigAssetBundleFn() public static method

public static UnpackConfigAssetBundleFn ( AssetBundle ab, LuaFunction luaFn ) : void
ab UnityEngine.AssetBundle
luaFn SLua.LuaFunction
return void