Zipc.Member
Archive members.
The type for archive member kinds.
make ~path kind
creates a member for path
of kind kind
.
path
goes through Fpath.ensure_unix
and, if the member is a directory, Fpath.ensure_directoryness
. Note that when you add the resulting member to an archive you may not be able to find it with the given path
, you need to use the path
of the result.mtime
defaults to Ptime.dos_epoch
. ZIP archives use MS-DOS date time whose epoch is on Ptime.dos_epoch
anything before is truncated to itmode
defaults 0o755
for directory entries and 0o644
for files.Error _
is returned with a suitable error message if the length of path
exceeds max_path_length
.
path m
is the file path of m
.
WARNING do not use this path on a file system without sanitizing it. Also, it may be the empty string.
val mode : t -> Fpath.mode
mode m
is the UNIX file mode of m
.
val pp : Stdlib.Format.formatter -> t -> unit
pp_member
formats members a bit like ls -l
does. The reported byte size is the File.decompressed_size
.
max
is 65535
, the maximum number of members that can be encoded in a (non-ZIP64) ZIP archive.