private static void NewImport(IArchiveDirectory root, RpfListBuilder.IFileContent fc, IAbsoluteFilePath tmpRpf, string name) { var existingFile = root.GetFile(name); var af = root.CreateArchiveFile(tmpRpf.ToString(), fc.Type == FileType.Default && existingFile != null ? DetermineType(existingFile) : fc.Type); if (existingFile != null) root.DeleteFile(existingFile); //af.IsCompressed = true; af.Name = name; af.Import(tmpRpf.ToString()); }