C# Class AssetBundleGraph.FileUtility

Show file Open project: unity3d-jp/AssetGraph Class Usage Examples

Public Methods

Method Description
ContainsHiddenFiles ( string filePath ) : bool
CopyFileFromGlobalToLocal ( string absoluteSourceFilePath, string localTargetFilePath ) : void
DeleteFileThenDeleteFolderIfEmpty ( string localTargetFilePath ) : void
EnsureAssetBundleCacheDirExists ( BuildTarget t, NodeData node, bool remake = false ) : string
EnsurePrefabBuilderCacheDirExists ( BuildTarget t, NodeData node ) : string
GetAllFilePathsInFolder ( string localFolderPath, bool includeHidden = false, bool includeMeta = !AssetBundleGraphSettings.IGNORE_META ) : List
GetFilePathsInFolder ( string folderPath, bool includeHidden = false, bool includeMeta = !AssetBundleGraphSettings.IGNORE_META ) : List
GetPathWithAssetsPath ( string pathUnderAssetsFolder ) : string
GetPathWithProjectPath ( string pathUnderProjectFolder ) : string
IsMetaFile ( string filePath ) : bool
PathCombine ( ) : string
ProjectPathWithSlash ( ) : string
RemakeDirectory ( string localFolderPath ) : void

Private Methods

Method Description
GetFilePathsRecursively ( string localFolderPath, List filePaths, bool includeHidden = false, bool includeMeta = !AssetBundleGraphSettings.IGNORE_META ) : void
_PathCombine ( string head, string tail ) : string

Method Details

ContainsHiddenFiles() public static method

public static ContainsHiddenFiles ( string filePath ) : bool
filePath string
return bool

CopyFileFromGlobalToLocal() public static method

public static CopyFileFromGlobalToLocal ( string absoluteSourceFilePath, string localTargetFilePath ) : void
absoluteSourceFilePath string
localTargetFilePath string
return void

DeleteFileThenDeleteFolderIfEmpty() public static method

public static DeleteFileThenDeleteFolderIfEmpty ( string localTargetFilePath ) : void
localTargetFilePath string
return void

EnsureAssetBundleCacheDirExists() public static method

public static EnsureAssetBundleCacheDirExists ( BuildTarget t, NodeData node, bool remake = false ) : string
t BuildTarget
node NodeData
remake bool
return string

EnsurePrefabBuilderCacheDirExists() public static method

public static EnsurePrefabBuilderCacheDirExists ( BuildTarget t, NodeData node ) : string
t BuildTarget
node NodeData
return string

GetAllFilePathsInFolder() public static method

public static GetAllFilePathsInFolder ( string localFolderPath, bool includeHidden = false, bool includeMeta = !AssetBundleGraphSettings.IGNORE_META ) : List
localFolderPath string
includeHidden bool
includeMeta bool
return List

GetFilePathsInFolder() public static method

public static GetFilePathsInFolder ( string folderPath, bool includeHidden = false, bool includeMeta = !AssetBundleGraphSettings.IGNORE_META ) : List
folderPath string
includeHidden bool
includeMeta bool
return List

GetPathWithAssetsPath() public static method

public static GetPathWithAssetsPath ( string pathUnderAssetsFolder ) : string
pathUnderAssetsFolder string
return string

GetPathWithProjectPath() public static method

public static GetPathWithProjectPath ( string pathUnderProjectFolder ) : string
pathUnderProjectFolder string
return string

IsMetaFile() public static method

public static IsMetaFile ( string filePath ) : bool
filePath string
return bool

PathCombine() public static method

public static PathCombine ( ) : string
return string

ProjectPathWithSlash() public static method

public static ProjectPathWithSlash ( ) : string
return string

RemakeDirectory() public static method

public static RemakeDirectory ( string localFolderPath ) : void
localFolderPath string
return void