C# 클래스 Helpers.FileOps

파일 보기 프로젝트 열기: cdadmin/clonedeploy 1 사용 예제들

공개 메소드들

메소드 설명
DeleteAllFiles ( string directoryPath ) : void
DeletePath ( string path ) : bool
FileExists ( string filePath ) : bool
GetDirectorySize ( DirectoryInfo d ) : long
MoveFile ( string sourceFileName, string destFileName ) : void
MoveFolder ( string sourceFolderName, string destFolderName ) : void
ReadAllText ( string path ) : string
RenameFolder ( string oldName, string newName ) : void
SetUnixPermissions ( string path ) : void
SetUnixPermissionsImage ( string path ) : void
WritePath ( string path, string contents ) : bool

메소드 상세

DeleteAllFiles() 공개 메소드

public DeleteAllFiles ( string directoryPath ) : void
directoryPath string
리턴 void

DeletePath() 공개 메소드

public DeletePath ( string path ) : bool
path string
리턴 bool

FileExists() 공개 메소드

public FileExists ( string filePath ) : bool
filePath string
리턴 bool

GetDirectorySize() 공개 메소드

public GetDirectorySize ( DirectoryInfo d ) : long
d System.IO.DirectoryInfo
리턴 long

MoveFile() 공개 메소드

public MoveFile ( string sourceFileName, string destFileName ) : void
sourceFileName string
destFileName string
리턴 void

MoveFolder() 공개 메소드

public MoveFolder ( string sourceFolderName, string destFolderName ) : void
sourceFolderName string
destFolderName string
리턴 void

ReadAllText() 공개 메소드

public ReadAllText ( string path ) : string
path string
리턴 string

RenameFolder() 공개 메소드

public RenameFolder ( string oldName, string newName ) : void
oldName string
newName string
리턴 void

SetUnixPermissions() 공개 메소드

public SetUnixPermissions ( string path ) : void
path string
리턴 void

SetUnixPermissionsImage() 공개 메소드

public SetUnixPermissionsImage ( string path ) : void
path string
리턴 void

WritePath() 공개 메소드

public WritePath ( string path, string contents ) : bool
path string
contents string
리턴 bool