Skip to content

Commit 62f1385

Browse files
committed
Extend documentation again
1 parent 1783740 commit 62f1385

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

Codec/Archive/Tar/Types.hs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,10 @@ data GenEntry tarPath linkTarget = Entry {
140140
--
141141
type Entry = GenEntry TarPath LinkTarget
142142

143-
-- | Native 'FilePath' of the file or directory within the archive.
143+
-- | Low-level function to get a native 'FilePath' of the file or directory
144+
-- within the archive, not accounting for long names. It's likely
145+
-- that you want to apply 'Codec.Archive.Tar.decodeLongNames'
146+
-- and use 'entryTarPath' afterwards instead of 'entryPath'.
144147
--
145148
entryPath :: GenEntry TarPath linkTarget -> FilePath
146149
entryPath = fromTarPath . entryTarPath

changelog.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,19 @@
2323
* Extend `FileNameError` with `UnsafeLinkTarget` constructor.
2424
* Drop deprecated `emptyIndex` and `finaliseIndex`.
2525

26+
Examples of migration:
27+
28+
* [`hackage-security`](https://github.com/haskell/hackage-security/commit/24693ce115c9769fe3c6ec9ca1d137d14d0d27ff)
29+
* [`archive-backpack`](https://github.com/vmchale/archive-backpack/commit/4b3d1bdff15fcf044d6171ca649a930c775d491b)
30+
* [`keter`](https://github.com/snoyberg/keter/commit/20a33d9276d5781ca6993b857d8d097085983ede)
31+
* [`libarchive`](https://github.com/vmchale/libarchive/commit/c0e101fede924a6e12f1d726587626c48444e65d)
32+
2633
Bug fixes:
2734

2835
* Add support for over-long filepaths via GNU extension.
36+
* Now `entryPath` corresponds to an internal, low-level path, limited
37+
to 255 characters. To list filenames properly use `decodeLongNames`,
38+
followed by `entryTarPath`.
2939
* Fix handling of hardlinks and symlinks.
3040
* Handle > 8 GB files insted of silent corruption.
3141
* Prohibit non-ASCII file names instead of silent corruption.

0 commit comments

Comments
 (0)