mirror of
https://github.com/tsolomko/SWCompression.git
synced 2026-11-18 21:40:30 +00:00
Update docs for entryAttributes properties.
They now list what are possible values of keys of entryAttributes dictionary.
This commit is contained in:
2 files changed
+26
-5
No files matched your search
@@ -74,13 +74,26 @@ public class TarEntry: ContainerEntry {
|
||||
/**
|
||||
Provides a dictionary with various attributes of the entry.
|
||||
`FileAttributeKey` values are used as dictionary keys.
|
||||
|
||||
|
||||
- Note:
|
||||
Will be renamed to `attributes` in 4.0.
|
||||
Will be renamed in 4.0.
|
||||
|
||||
## Possible attributes:
|
||||
|
||||
- `FileAttributeKey.posixPermissions`,
|
||||
- `FileAttributeKey.ownerAccountID`,
|
||||
- `FileAttributeKey.groupOwnerAccountID`,
|
||||
- `FileAttributeKey.size`,
|
||||
- `FileAttributeKey.modificationDate`,
|
||||
- `FileAttributeKey.type`,
|
||||
- `FileAttributeKey.ownerAccountName`, if format of container is UStar,
|
||||
- `FileAttributeKey.groupOwnerAccountName`, if format of container is UStar.
|
||||
|
||||
Most modern TAR containers are in UStar format.
|
||||
*/
|
||||
public let entryAttributes: [FileAttributeKey: Any]
|
||||
|
||||
/**
|
||||
/**
|
||||
File mode.
|
||||
|
||||
- Warning:
|
||||
|
||||
@@ -88,9 +88,17 @@ public class ZipEntry: ContainerEntry {
|
||||
/**
|
||||
Provides a dictionary with various attributes of the entry.
|
||||
`FileAttributeKey` values are used as dictionary keys.
|
||||
|
||||
|
||||
- Note:
|
||||
Will be renamed to `attributes` in 4.0.
|
||||
Will be renamed in 4.0.
|
||||
|
||||
## Possible attributes:
|
||||
|
||||
- `FileAttributeKey.modificationDate`
|
||||
- `FileAttributeKey.size`
|
||||
- `FileAttributeKey.type`, only if origin OS was UNIX- or DOS-like.
|
||||
- `FileAttributeKey.posixPermissions`, only if origin OS was UNIX-like.
|
||||
- `FileAttributeKey.appendOnly`, only if origin OS was DOS-like.
|
||||
*/
|
||||
public let entryAttributes: [FileAttributeKey: Any]
|
||||
|
||||
|
||||
Reference in new issue
Block a user