C# 클래스 BlogEngine.Core.FileSystem.FileSystemUtilities

Utility class for various FileSystem operations.
파일 보기 프로젝트 열기: rasmuskl/ReSharperCourse

공개 메소드들

메소드 설명
CompressDirectory ( string ArchiveOutputLocation, Directory ArchiveDirectory ) : void

Compresses a directory using Zip compression into a specified directory

is recursive

CreateProvider ( string ProviderName ) : Providers.BlogProvider
DumpProvider ( string NewProviderName, string ArchiveOutputLocation ) : string

Dumps the file store provider to a zip file, clears the old file store, switches and reloads a new providers clears the new file storage provider, then loads the new file store provider from the zip.

비공개 메소드들

메소드 설명
ExtractDirectory ( string ArchiveOutputLocation ) : void
ZipDirectory ( Directory RootDirectory, Directory CurrentDirectory, object zStream ) : void

Adds a directory to a specific ZipStream

do not call this method directly, this method is designed be called in a recursive manor.

메소드 상세

CompressDirectory() 공개 메소드

Compresses a directory using Zip compression into a specified directory
is recursive
public CompressDirectory ( string ArchiveOutputLocation, Directory ArchiveDirectory ) : void
ArchiveOutputLocation string the output directory path (including file name)
ArchiveDirectory System.IO.Directory the Directory object to be compressed
리턴 void

CreateProvider() 공개 정적인 메소드

public static CreateProvider ( string ProviderName ) : Providers.BlogProvider
ProviderName string
리턴 Providers.BlogProvider

DumpProvider() 공개 메소드

Dumps the file store provider to a zip file, clears the old file store, switches and reloads a new providers clears the new file storage provider, then loads the new file store provider from the zip.
public DumpProvider ( string NewProviderName, string ArchiveOutputLocation ) : string
NewProviderName string The name of the new provider
ArchiveOutputLocation string The output archive location.
리턴 string