Update docs for entryAttributes properties.

They now list what are possible values of keys of entryAttributes dictionary.
This commit is contained in:
Timofey Solomko committed 2017-07-05 22:25:56 +03:00
1 parent fe82ca0166
commit 689ea51b29
2 files changed
+26 -5

No files matched your search

+16 -3
View File
@@ -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:
+10 -2
View File
@@ -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]