C# Class GILES.pb_FileUtility

ファイルを表示 Open project: procore3d/giles

Public Methods

Method Description
GetFullPath ( string path ) : string
GetPathType ( string path ) : PathType
IsValidPath ( string path, string extension ) : bool
ReadFile ( string path ) : string
SanitizePath ( string path, string extension = null ) : string
SaveFile ( string path, string contents ) : bool

Method Details

GetFullPath() public static method

public static GetFullPath ( string path ) : string
path string
return string

GetPathType() public static method

public static GetPathType ( string path ) : PathType
path string
return PathType

IsValidPath() public static method

public static IsValidPath ( string path, string extension ) : bool
path string
extension string
return bool

ReadFile() public static method

public static ReadFile ( string path ) : string
path string
return string

SanitizePath() public static method

public static SanitizePath ( string path, string extension = null ) : string
path string
extension string
return string

SaveFile() public static method

public static SaveFile ( string path, string contents ) : bool
path string
contents string
return bool