Class FileUtility
Syntax
Methods
ContainsHiddenFiles(String)
Declaration
public static bool ContainsHiddenFiles(string filePath)
Parameters
Type |
Name |
Description |
String |
filePath |
|
Returns
CopyFile(String, String)
Declaration
public static void CopyFile(string sourceFilePath, string targetFilePath)
Parameters
Type |
Name |
Description |
String |
sourceFilePath |
|
String |
targetFilePath |
|
CopyTemplateFile(String, String, String, String)
Declaration
public static void CopyTemplateFile(string sourceFilePath, string targetFilePath, string srcName, string dstName)
Parameters
DeleteDirectory(String, Boolean, Boolean)
Declaration
public static void DeleteDirectory(string dirPath, bool isRecursive, bool forceDelete = true)
Parameters
DeleteFileThenDeleteFolderIfEmpty(String)
Declaration
public static void DeleteFileThenDeleteFolderIfEmpty(string localTargetFilePath)
Parameters
Type |
Name |
Description |
String |
localTargetFilePath |
|
EnsureAssetBundleCacheDirExists(BuildTarget, NodeData, Boolean)
Declaration
public static string EnsureAssetBundleCacheDirExists(BuildTarget t, NodeData node, bool remake = false)
Parameters
Returns
EnsureCacheDirExists(BuildTarget, NodeData, String)
Declaration
public static string EnsureCacheDirExists(BuildTarget t, NodeData node, string name)
Parameters
Returns
GetAllFilePathsInFolder(String, Boolean, Boolean)
Declaration
public static List<string> GetAllFilePathsInFolder(string localFolderPath, bool includeHidden = false, bool includeMeta = false)
Parameters
Returns
GetFilePathsInFolder(String, Boolean, Boolean)
Declaration
public static List<string> GetFilePathsInFolder(string folderPath, bool includeHidden = false, bool includeMeta = false)
Parameters
Returns
GetPathWithAssetsPath(String)
Declaration
public static string GetPathWithAssetsPath(string pathUnderAssetsFolder)
Parameters
Type |
Name |
Description |
String |
pathUnderAssetsFolder |
|
Returns
GetPathWithProjectPath(String)
Declaration
public static string GetPathWithProjectPath(string pathUnderProjectFolder)
Parameters
Type |
Name |
Description |
String |
pathUnderProjectFolder |
|
Returns
Declaration
public static bool IsMetaFile(string filePath)
Parameters
Type |
Name |
Description |
String |
filePath |
|
Returns
PathCombine(String[])
Declaration
public static string PathCombine(params string[] paths)
Parameters
Type |
Name |
Description |
String[] |
paths |
|
Returns
ProjectPathWithSlash()
Declaration
public static string ProjectPathWithSlash()
Returns
RemakeDirectory(String)
Declaration
public static void RemakeDirectory(string localFolderPath)
Parameters
Type |
Name |
Description |
String |
localFolderPath |
|
RemoveFileAttributes(String, Boolean)
Declaration
public static void RemoveFileAttributes(string dirPath, bool isRecursive)
Parameters