C# Class withSIX.Mini.Core.Games.Services.ContentInstaller.ContentInstaller.ContentCleaner

Mostrar archivo Open project: SIXNetworks/withSIX.Desktop

Public Methods

Method Description
Clean ( IAbsoluteDirectoryPath workingDirectory, IReadOnlyCollection exclusions, IEnumerable fileTypes, IAbsoluteDirectoryPath backupPath ) : void
CleanAsync ( IAbsoluteDirectoryPath workingDirectory, IReadOnlyCollection exclusions, IEnumerable fileTypes, IAbsoluteDirectoryPath backupPath ) : Task

Private Methods

Method Description
BackupEntry ( IAbsoluteDirectoryPath workingDirectory, IAbsoluteDirectoryPath backupPath, IAbsoluteFilePath entry ) : void
DeleteDestinationIfDirectory ( IAbsoluteFilePath backupDestination ) : void
DeleteEmptyFolders ( IAbsoluteDirectoryPath path ) : void
DeleteParentFilesIfExists ( IPath path, IAbsoluteDirectoryPath backupPath ) : void
GetExcludedDirectories ( IAbsoluteDirectoryPath workingDirectory, IEnumerable exclusions ) : IEnumerable
GetExcludedFiles ( IAbsoluteDirectoryPath workingDirectory, IEnumerable exclusions ) : IEnumerable
GetFilesToRemove ( IAbsoluteDirectoryPath workingDirectory, IReadOnlyCollection exclusions, IEnumerable fileTypes ) : IEnumerable
IsNotDirectoryExcluded ( IFilePath x, IReadOnlyCollection excludedDirectories ) : bool
IsNotExcluded ( IFilePath x, IReadOnlyCollection excludedDirectories, IEnumerable excludedFiles ) : bool

Method Details

Clean() public method

public Clean ( IAbsoluteDirectoryPath workingDirectory, IReadOnlyCollection exclusions, IEnumerable fileTypes, IAbsoluteDirectoryPath backupPath ) : void
workingDirectory IAbsoluteDirectoryPath
exclusions IReadOnlyCollection
fileTypes IEnumerable
backupPath IAbsoluteDirectoryPath
return void

CleanAsync() public method

public CleanAsync ( IAbsoluteDirectoryPath workingDirectory, IReadOnlyCollection exclusions, IEnumerable fileTypes, IAbsoluteDirectoryPath backupPath ) : Task
workingDirectory IAbsoluteDirectoryPath
exclusions IReadOnlyCollection
fileTypes IEnumerable
backupPath IAbsoluteDirectoryPath
return Task