26 references to ExtendedAttributes
System.Formats.Tar (26)
System\Formats\Tar\PaxGlobalExtendedAttributesTarEntry.cs (1)
35public IReadOnlyDictionary<string, string> GlobalExtendedAttributes => field ??= _header.ExtendedAttributes.AsReadOnly();
System\Formats\Tar\PaxTarEntry.cs (3)
76_header.ExtendedAttributes[TarHeader.PaxEaName] = entryName; 104_header.ExtendedAttributes[TarHeader.PaxEaATime] = TarHelpers.GetTimestampStringFromDateTimeOffset(gnuOther.AccessTime); 108_header.ExtendedAttributes[TarHeader.PaxEaCTime] = TarHelpers.GetTimestampStringFromDateTimeOffset(gnuOther.ChangeTime);
System\Formats\Tar\TarHeader.cs (2)
233PopulateExtendedAttributesFromStandardFields(ExtendedAttributes); 234return ExtendedAttributes;
System\Formats\Tar\TarHeader.Read.cs (16)
110if (ExtendedAttributes.TryGetValue(PaxEaName, out string? paxEaName)) 118ExtendedAttributes.TryGetValue(PaxEaLinkName, out string? paxEaLinkName)) 124if (TarHelpers.TryGetDateTimeOffsetFromTimestampString(ExtendedAttributes, PaxEaMTime, out DateTimeOffset mTime)) 130if (TarHelpers.TryGetStringAsBaseTenInteger(ExtendedAttributes, PaxEaMode, out int mode)) 136if (TarHelpers.TryGetStringAsBaseTenLong(ExtendedAttributes, PaxEaSize, out long size)) 151if (ExtendedAttributes.TryGetValue(PaxEaGnuSparseName, out string? gnuSparseName)) 158if (TarHelpers.TryGetStringAsBaseTenLong(ExtendedAttributes, PaxEaGnuSparseRealSize, out long gnuSparseRealSize)) 169if (ExtendedAttributes.TryGetValue(PaxEaGnuSparseMajor, out string? gnuSparseMajor) && gnuSparseMajor == "1" && 170ExtendedAttributes.TryGetValue(PaxEaGnuSparseMinor, out string? gnuSparseMinor) && gnuSparseMinor == "0") 177if (TarHelpers.TryGetStringAsBaseTenInteger(ExtendedAttributes, PaxEaUid, out int uid)) 183if (TarHelpers.TryGetStringAsBaseTenInteger(ExtendedAttributes, PaxEaGid, out int gid)) 189if (ExtendedAttributes.TryGetValue(PaxEaUName, out string? paxEaUName)) 195if (ExtendedAttributes.TryGetValue(PaxEaGName, out string? paxEaGName)) 201if (TarHelpers.TryGetStringAsBaseTenInteger(ExtendedAttributes, PaxEaDevMajor, out int devMajor)) 207if (TarHelpers.TryGetStringAsBaseTenInteger(ExtendedAttributes, PaxEaDevMinor, out int devMinor)) 613if (!ExtendedAttributes.TryAdd(key, value))
System\Formats\Tar\TarHeader.Write.cs (3)
134return WriteAsPaxExtendedAttributesCoreAsync<TAdapter>(archiveStream, buffer, ExtendedAttributes, isGea: true, globalExtendedAttributesEntryNumber, cancellationToken); 196await extendedAttributesHeader.WriteAsPaxExtendedAttributesCoreAsync<TAdapter>(archiveStream, buffer, ExtendedAttributes, isGea: false, globalExtendedAttributesEntryNumber: -1, cancellationToken).ConfigureAwait(false); 208await extendedAttributesHeader.WriteAsPaxExtendedAttributesCoreAsync<TAdapter>(archiveStream, buffer, ExtendedAttributes, isGea: false, globalExtendedAttributesEntryNumber: -1, cancellationToken).ConfigureAwait(false);
System\Formats\Tar\TarReader.cs (1)
304actualHeader.ReplaceNormalAttributesWithExtended(extendedAttributesHeader.ExtendedAttributes);