TypeFlag enum
Type flags for TarHeader.
The type flag of a header indicates the kind of file associated with the entry. This enum contains the various type flags over the different TAR formats, and users should be careful that the type flag corresponds to the TAR format they are working with.
Values
- reg → const TypeFlag
-
reg indicates regular files.
Old tar implementations have a separate
TypeRegA
value. This library will transparently read those as regA. - regA → const TypeFlag
-
Legacy-version of reg in old tar implementations.
This is only used internally.
- link → const TypeFlag
-
Hard link - header-only, may not have a data body
- symlink → const TypeFlag
-
Symbolic link - header-only, may not have a data body
- char → const TypeFlag
-
Character device node - header-only, may not have a data body
- block → const TypeFlag
-
Block device node - header-only, may not have a data body
- dir → const TypeFlag
-
Directory - header-only, may not have a data body
- fifo → const TypeFlag
-
FIFO node - header-only, may not have a data body
- reserved → const TypeFlag
-
Currently does not have any meaning, but is reserved for the future.
- xHeader → const TypeFlag
-
Used by the PAX format to store key-value records that are only relevant to the next file.
This package transparently handles these types.
- xGlobalHeader → const TypeFlag
-
Used by the PAX format to store key-value records that are relevant to all subsequent files.
This package only supports parsing and composing such headers, but does not currently support persisting the global state across files.
- gnuSparse → const TypeFlag
-
Indicates a sparse file in the GNU format
- gnuLongName → const TypeFlag
-
Used by the GNU format for a meta file to store the path or link name for the next file. This package transparently handles these types.
- gnuLongLink → const TypeFlag
- vendor → const TypeFlag
-
Vendor specific typeflag, as defined in POSIX.1-1998. Seen as outdated but may still exist on old files.
This library uses a single enum to catch them all.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited