public ArchiveContent CreateFromDownload(string destination, string url, IFileDownloader downloader) { var name = GetName(url.Split('/').Last()); var ac = new ArchiveContent(name, destination, downloader); ac.ImportFromDownload(url); return ac; }
public ArchiveContent CreateFromExisting(IAbsoluteDirectoryPath destination, IAbsoluteFilePath file, IFileDownloader downloader) { var name = GetName(file.ToString()); var ac = new ArchiveContent(name, destination.ToString(), downloader); ac.ImportFromArchive(file); return ac; }
public ArchiveContent CreateFromDownload(string name, string destination, string url, IFileDownloader downloader) { var ac = new ArchiveContent(name, destination, downloader); ac.ImportFromDownload(url); return ac; }
public ArchiveContent CreateFromExisting(string name, string destination, IAbsoluteFilePath file, IFileDownloader downloader) { var ac = new ArchiveContent(name, destination, downloader); ac.ImportFromArchive(file); return ac; }