package zipc
Module Zipc.MemberSource
Archive members.
Members
The type for archive member kinds.
The type for archive members.
make ~path kind creates a member for path of kind kind.
pathgoes throughFpath.ensure_unixand, 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 givenpath, you need to use thepathof the result.mtimedefaults toPtime.dos_epoch. ZIP archives use MS-DOS date time whose epoch is onPtime.dos_epochanything before is truncated to itmodedefaults0o755for directory entries and0o644for 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.
mode m is the UNIX file mode of m.
pp_member formats members a bit like ls -l does. The reported byte size is the File.decompressed_size.
pp_long is like pp but adds more information.
Limits
max is 65535, the maximum number of members that can be encoded in a (non-ZIP64) ZIP archive.
max_path_length is 65535, the maximal size for member paths in ZIP archives.