File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,10 @@ data GenEntry tarPath linkTarget = Entry {
140
140
--
141
141
type Entry = GenEntry TarPath LinkTarget
142
142
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'.
144
147
--
145
148
entryPath :: GenEntry TarPath linkTarget -> FilePath
146
149
entryPath = fromTarPath . entryTarPath
Original file line number Diff line number Diff line change 23
23
* Extend ` FileNameError ` with ` UnsafeLinkTarget ` constructor.
24
24
* Drop deprecated ` emptyIndex ` and ` finaliseIndex ` .
25
25
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
+
26
33
Bug fixes:
27
34
28
35
* 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 ` .
29
39
* Fix handling of hardlinks and symlinks.
30
40
* Handle > 8 GB files insted of silent corruption.
31
41
* Prohibit non-ASCII file names instead of silent corruption.
You can’t perform that action at this time.
0 commit comments