public void CreateLink() { Race race = new Race(ArgsRarPart1); race.ParseUpload(); TagManager tagManager = new TagManager(race); const string testlink = "[iNCOMPLETE]-testLink"; tagManager.CreateSymLink(".", testlink); Assert.IsTrue(Directory.Exists(testlink)); Directory.Delete(testlink); }
public void Process() { TagManager tagManager = new TagManager(race); CreateZipRaceDataFile(); Output output = new Output(race); //output // .Client(Config.ClientHead) // .Client(Config.ClientFileName) // .Client(Config.ClientFoot); tagManager.CreateTag(currentRaceData.DirectoryPath, output.Format(Config.TagIncomplete, null)); tagManager.CreateSymLink(currentRaceData.DirectoryParent, output.Format(Config.TagIncompleteLink, null)); }
public void Process() { Log.Debug("Process with SFV"); TagManager tagManager = new TagManager(race); Log.Debug("Create missing files"); foreach (KeyValuePair<string, string> keyValuePair in sfvData) { FileInfo.Create0ByteFile(Misc.PathCombine(currentRaceData.DirectoryPath, keyValuePair.Key + Config.FileExtensionMissing)); } race.TotalFilesExpected = sfvData.Count; Log.Debug("Total files expected: {0}", race.TotalFilesExpected); CreateSfvRaceDataFile(); Output output = new Output(race); output .Client(Config.ClientHead) .Client(Config.ClientFileNameSfv) .Client(Config.ClientFoot); Log.Debug("Create INCOMPLETE Symlinks"); tagManager.CreateTag(currentRaceData.DirectoryPath, output.Format(Config.TagIncomplete)); tagManager.CreateSymLink(currentRaceData.DirectoryParent, output.Format(Config.TagIncompleteLink)); if (Config.LogToIoFtpdSfv) { Log.IoFtpd(output.Format(Config.LogLineIoFtpdSfv)); } if (Config.LogToInternalSfv) { Log.Internal(output.Format(Config.LogLineInternalSfv)); } }