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.

Inheritance

Constructors

TypeFlag()
const

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.

Hard link - header-only, may not have a data body

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.

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

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Constants

values → const List<TypeFlag>
A constant List of the values in this enum, in order of their declaration.