public virtual void DownloadFromTfs(IFolderDiffEntry diff, string outputPath) { int deletionID = 0; // TODO: what is this? WriteToTrace("Downloading file from TFS: '{0}'", diff.Path2); Vcs.DownloadFile(diff.Path2, deletionID, diff.Path2VersionSpec, outputPath); }
public virtual bool IsDirectory(IFolderDiffEntry item) { return item.ItemType == ItemType.Folder; }
public virtual void CopyLocalFile(IFolderDiffEntry diff, string outputPath) { string sourcePath = diff.Path2; if(File.Exists(sourcePath)) { WriteToTrace("Copying local path: '{0}'", sourcePath); string dir = Path.GetDirectoryName(outputPath); if (!Directory.Exists(dir)) { Directory.CreateDirectory(dir); } File.Copy(sourcePath, outputPath, true); } }