49 references to Format
System.Formats.Tar (49)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (6)
126
new FileNotFoundException(SR.
Format
(SR.IO_FileNotFound_FileName, path), path) :
134
new DirectoryNotFoundException(SR.
Format
(SR.IO_PathNotFound_Path, path), path) :
145
new UnauthorizedAccessException(SR.
Format
(SR.UnauthorizedAccess_IODenied_Path, path), inner) :
150
new PathTooLongException(SR.
Format
(SR.IO_PathTooLong_Path, path)) :
155
new IOException(SR.
Format
(SR.IO_SharingViolation_File, path), errorInfo.RawErrno) :
167
return new IOException(SR.
Format
(SR.IO_FileExists_Name, path), errorInfo.RawErrno);
System\Formats\Tar\TarEntry.cs (6)
218
throw new InvalidOperationException(SR.
Format
(SR.TarEntryTypeNotSupportedForExtracting, EntryType));
253
return Task.FromException(new InvalidOperationException(SR.
Format
(SR.TarEntryTypeNotSupportedForExtracting, EntryType)));
632
throw new InvalidOperationException(SR.
Format
(SR.TarEntryTypeNotSupportedForExtracting, EntryType));
643
throw new IOException(SR.
Format
(SR.IO_PathNotFound_Path, filePath));
654
throw new IOException(SR.
Format
(SR.IO_AlreadyExists_Name, filePath));
660
throw new IOException(SR.
Format
(SR.IO_AlreadyExists_Name, filePath));
System\Formats\Tar\TarFile.cs (10)
70
throw new DirectoryNotFoundException(SR.
Format
(SR.IO_PathNotFound_Path, sourceDirectoryName), sourceDirectoryName);
138
return Task.FromException(new DirectoryNotFoundException(SR.
Format
(SR.IO_PathNotFound_Path, sourceDirectoryName), sourceDirectoryName));
193
throw new DirectoryNotFoundException(SR.
Format
(SR.IO_PathNotFound_Path, sourceDirectoryName), sourceDirectoryName);
256
return Task.FromException(new DirectoryNotFoundException(SR.
Format
(SR.IO_PathNotFound_Path, sourceDirectoryName), sourceDirectoryName));
312
throw new DirectoryNotFoundException(SR.
Format
(SR.IO_PathNotFound_Path, destinationDirectoryName), destinationDirectoryName);
380
return Task.FromException(new DirectoryNotFoundException(SR.
Format
(SR.IO_PathNotFound_Path, destinationDirectoryName), destinationDirectoryName));
438
throw new FileNotFoundException(SR.
Format
(SR.IO_FileNotFound_FileName, sourceFileName));
443
throw new DirectoryNotFoundException(SR.
Format
(SR.IO_PathNotFound_Path, destinationDirectoryName), destinationDirectoryName);
507
return Task.FromException(new FileNotFoundException(SR.
Format
(SR.IO_FileNotFound_FileName, sourceFileName)));
512
return Task.FromException(new DirectoryNotFoundException(SR.
Format
(SR.IO_PathNotFound_Path, destinationDirectoryName), destinationDirectoryName));
System\Formats\Tar\TarHeader.Read.cs (13)
317
throw new InvalidDataException(SR.
Format
(SR.TarSizeFieldTooLargeForEntryType, _typeFlag));
478
TarEntryType.SparseFile => throw new NotSupportedException(SR.
Format
(SR.TarEntryTypeNotSupported, header._typeFlag)),
560
throw new InvalidDataException(SR.
Format
(SR.TarPosixFormatExpected, _name));
578
throw new InvalidDataException(SR.
Format
(SR.TarGnuFormatExpected, _name));
686
throw new InvalidOperationException(SR.
Format
(SR.TarSizeFieldTooLargeForEntryType, _typeFlag.ToString()));
696
throw new InvalidDataException(SR.
Format
(SR.TarDuplicateExtendedAttribute, name));
825
throw new InvalidDataException(SR.
Format
(SR.TarCompressionArchiveDetected, "7-Zip"));
832
throw new InvalidDataException(SR.
Format
(SR.TarCompressionArchiveDetected, "ZIP"));
839
throw new InvalidDataException(SR.
Format
(SR.TarCompressionArchiveDetected, "GZIP"));
846
throw new InvalidDataException(SR.
Format
(SR.TarCompressionArchiveDetected, "BZIP2"));
855
throw new InvalidDataException(SR.
Format
(SR.TarCompressionArchiveDetected, "XZ"));
863
throw new InvalidDataException(SR.
Format
(SR.TarCompressionArchiveDetected, "Zstandard"));
883
throw new InvalidDataException(SR.
Format
(SR.TarCompressionArchiveDetected, "ZLIB"));
System\Formats\Tar\TarHeader.Write.cs (8)
532
throw new ArgumentException(SR.
Format
(SR.TarEntryFieldExceedsMaxLength, nameof(TarEntry.Name)), ArgNameEntry);
553
throw new ArgumentException(SR.
Format
(SR.TarEntryFieldExceedsMaxLength, nameof(TarEntry.Name)), ArgNameEntry);
606
throw new ArgumentException(SR.
Format
(SR.TarEntryFieldExceedsMaxLength, nameof(TarEntry.Name)), ArgNameEntry);
652
throw new ArgumentException(SR.
Format
(SR.TarEntryFieldExceedsMaxLength, nameof(TarEntry.LinkName)), ArgNameEntry);
710
throw new ArgumentException(SR.
Format
(SR.TarEntryFieldExceedsMaxLength, nameof(PaxTarEntry.UserName)), ArgNameEntry);
728
throw new ArgumentException(SR.
Format
(SR.TarEntryFieldExceedsMaxLength, nameof(PaxTarEntry.GroupName)), ArgNameEntry);
1054
throw new ArgumentException(SR.
Format
(SR.TarFieldTooLargeForEntryFormat, _format));
1079
throw new ArgumentException(SR.
Format
(SR.TarFieldTooLargeForEntryFormat, _format));
System\Formats\Tar\TarHelpers.cs (1)
379
throw new InvalidDataException(SR.
Format
(SR.TarInvalidFormat, archiveFormat));
System\Formats\Tar\TarWriter.cs (3)
334
throw new InvalidDataException(SR.
Format
(SR.TarInvalidFormat, Format));
356
_ => throw new InvalidDataException(SR.
Format
(SR.TarInvalidFormat, Format)),
403
throw new IOException(SR.
Format
(SR.TarStreamSeekabilityUnsupportedCombination, entry.Name));
System\Formats\Tar\TarWriter.Unix.cs (2)
59
_ => throw new IOException(SR.
Format
(SR.TarUnsupportedFile, fullPath)),
71
_ => throw new InvalidDataException(SR.
Format
(SR.TarInvalidFormat, Format)),