C# Class Yodiwo.Tools.FileSystem

ファイルを表示 Open project: yodiwo/plegma

Public Methods

Method Description
DirectoryCopy ( string sourceDirName, string destDirName, bool copySubDirs, FileOverwriteModes FileOverwriteMode = FileOverwriteModes.Overwrite, bool ignoreCopyErrors = false, bool>.Func FileFilter = null, bool>.Func DirectoryFilter = null ) : void
DirectoryWalker ( string sourceDirName, string fileSearchPattern = null ) : FileInfo[]>>.IEnumerable
FixPath ( string path, bool MakeAbsolute = false ) : string
FixUserHomePath ( string path ) : string
GetDirectorySize ( string p, bool recursive, string pattern = "*" ) : long
GetFileSize ( string fileName ) : long
GetPhysicalPath ( string filepath ) : string

Method Details

DirectoryCopy() public static method

public static DirectoryCopy ( string sourceDirName, string destDirName, bool copySubDirs, FileOverwriteModes FileOverwriteMode = FileOverwriteModes.Overwrite, bool ignoreCopyErrors = false, bool>.Func FileFilter = null, bool>.Func DirectoryFilter = null ) : void
sourceDirName string
destDirName string
copySubDirs bool
FileOverwriteMode FileOverwriteModes
ignoreCopyErrors bool
FileFilter bool>.Func
DirectoryFilter bool>.Func
return void

DirectoryWalker() public static method

public static DirectoryWalker ( string sourceDirName, string fileSearchPattern = null ) : FileInfo[]>>.IEnumerable
sourceDirName string
fileSearchPattern string
return FileInfo[]>>.IEnumerable

FixPath() public static method

public static FixPath ( string path, bool MakeAbsolute = false ) : string
path string
MakeAbsolute bool
return string

FixUserHomePath() public static method

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

GetDirectorySize() public static method

public static GetDirectorySize ( string p, bool recursive, string pattern = "*" ) : long
p string
recursive bool
pattern string
return long

GetFileSize() public static method

public static GetFileSize ( string fileName ) : long
fileName string
return long

GetPhysicalPath() public static method

public static GetPhysicalPath ( string filepath ) : string
filepath string
return string