C# 클래스 VersionOne.ServiceHost.Core.FileSys

파일 보기 프로젝트 열기: versionone/VersionOne.ServiceHost.Core

공개 메소드들

메소드 설명
CommitFile ( string backup ) : void

Deletes backup information from SafeCopyFile

CommitFolder ( string backup ) : void
CopyFile ( string sourcefile, string destfile ) : void
CopyFolder ( string sourcefolder, string destfolder ) : void
CreateFolder ( string folder ) : void
DeleteEmptyFolder ( string filename ) : void
DeleteFile ( string file ) : void
DeleteFile ( string file, bool allowDelay ) : void
DeleteFolder ( string folder ) : void
DeleteFolder ( string folder, bool allowDelay ) : void
EntrySize ( string fileordir ) : int
FileInUse ( string path ) : bool
FolderInUse ( string folder ) : bool
GetFileVersion ( string filename ) : System.Version
GetFiles ( string foldername, string searchpattern, bool recurse ) : string[]
IsSourceFileNewer ( string source, string dest ) : bool

Checks if a source file is newer than a destination file. Uses assembly version if available, then falls back to file time.

MoveFile ( string sourcefile, string destfile ) : void
MoveFolder ( string sourcefolder, string destfolder ) : void
ReadTextFile ( string filename ) : string
RollbackFile ( string destfile, string backup ) : void

Restores a file created by SafeCopyFile

RollbackFolder ( string destfolder, string backup ) : void
SafeCopyFile ( string sourcefile, string destfile ) : string

Copies a file. If the destination already exists, rename it.

SafeCopyFolder ( string sourcefolder, string destfolder ) : string
TempName ( string basename ) : string
Touch ( string path ) : void

비공개 메소드들

메소드 설명
GetFilesRecursive ( string foldername, string searchpattern, ArrayList filenames ) : void
InternalDeleteFile ( string file, bool allowDelay ) : void
InternalDeleteFolder ( string folder, bool allowDelay ) : void
MoveFileEx ( string source, string dest, uint flags ) : bool

메소드 상세

CommitFile() 공개 정적인 메소드

Deletes backup information from SafeCopyFile
public static CommitFile ( string backup ) : void
backup string Returned backup name from original SafeCopyFile call
리턴 void

CommitFolder() 공개 정적인 메소드

public static CommitFolder ( string backup ) : void
backup string
리턴 void

CopyFile() 공개 정적인 메소드

public static CopyFile ( string sourcefile, string destfile ) : void
sourcefile string
destfile string
리턴 void

CopyFolder() 공개 정적인 메소드

public static CopyFolder ( string sourcefolder, string destfolder ) : void
sourcefolder string
destfolder string
리턴 void

CreateFolder() 공개 정적인 메소드

public static CreateFolder ( string folder ) : void
folder string
리턴 void

DeleteEmptyFolder() 공개 정적인 메소드

public static DeleteEmptyFolder ( string filename ) : void
filename string
리턴 void

DeleteFile() 공개 정적인 메소드

public static DeleteFile ( string file ) : void
file string
리턴 void

DeleteFile() 공개 정적인 메소드

public static DeleteFile ( string file, bool allowDelay ) : void
file string
allowDelay bool
리턴 void

DeleteFolder() 공개 정적인 메소드

public static DeleteFolder ( string folder ) : void
folder string
리턴 void

DeleteFolder() 공개 정적인 메소드

public static DeleteFolder ( string folder, bool allowDelay ) : void
folder string
allowDelay bool
리턴 void

EntrySize() 공개 정적인 메소드

public static EntrySize ( string fileordir ) : int
fileordir string
리턴 int

FileInUse() 공개 정적인 메소드

public static FileInUse ( string path ) : bool
path string
리턴 bool

FolderInUse() 공개 정적인 메소드

public static FolderInUse ( string folder ) : bool
folder string
리턴 bool

GetFileVersion() 공개 정적인 메소드

public static GetFileVersion ( string filename ) : System.Version
filename string
리턴 System.Version

GetFiles() 공개 정적인 메소드

public static GetFiles ( string foldername, string searchpattern, bool recurse ) : string[]
foldername string
searchpattern string
recurse bool
리턴 string[]

IsSourceFileNewer() 공개 정적인 메소드

Checks if a source file is newer than a destination file. Uses assembly version if available, then falls back to file time.
public static IsSourceFileNewer ( string source, string dest ) : bool
source string
dest string
리턴 bool

MoveFile() 공개 정적인 메소드

public static MoveFile ( string sourcefile, string destfile ) : void
sourcefile string
destfile string
리턴 void

MoveFolder() 공개 정적인 메소드

public static MoveFolder ( string sourcefolder, string destfolder ) : void
sourcefolder string
destfolder string
리턴 void

ReadTextFile() 공개 정적인 메소드

public static ReadTextFile ( string filename ) : string
filename string
리턴 string

RollbackFile() 공개 정적인 메소드

Restores a file created by SafeCopyFile
public static RollbackFile ( string destfile, string backup ) : void
destfile string Destination file from original SafeCopyFile call
backup string Returned backup name from original SafeCopyFile call
리턴 void

RollbackFolder() 공개 정적인 메소드

public static RollbackFolder ( string destfolder, string backup ) : void
destfolder string
backup string
리턴 void

SafeCopyFile() 공개 정적인 메소드

Copies a file. If the destination already exists, rename it.
public static SafeCopyFile ( string sourcefile, string destfile ) : string
sourcefile string
destfile string
리턴 string

SafeCopyFolder() 공개 정적인 메소드

public static SafeCopyFolder ( string sourcefolder, string destfolder ) : string
sourcefolder string
destfolder string
리턴 string

TempName() 공개 정적인 메소드

public static TempName ( string basename ) : string
basename string
리턴 string

Touch() 공개 정적인 메소드

public static Touch ( string path ) : void
path string
리턴 void