Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Codec.Archive.Tar.LongNames
Synopsis
Documentation
encodeLongNames :: GenEntry FilePath FilePath -> [Entry] Source #
Translate high-level entries with POSIX FilePath
s for files and symlinks
into entries suitable for serialization by emitting additional
OtherEntryType
'K'
and OtherEntryType
'L'
nodes.
Input FilePath
s must be POSIX file names, not native ones.
Since: 0.6.0.0
decodeLongNames :: Entries e -> GenEntries FilePath FilePath (Either e DecodeLongNamesError) Source #
Translate low-level entries (usually freshly deserialized) into
high-level entries with POSIX FilePath
s for files and symlinks
by parsing and eliminating
OtherEntryType
'K'
and OtherEntryType
'L'
nodes.
Resolved FilePath
s are still POSIX file names, not native ones.
Since: 0.6.0.0
data DecodeLongNamesError Source #
Errors raised by decodeLongNames
.
Since: 0.6.0.0
Constructors
TwoTypeKEntries | Two adjacent |
TwoTypeLEntries | Two adjacent |
NoLinkEntryAfterTypeKEntry |
|