Up

module Archive

: sig

Unpacking archives

#
type mime_type = string
#
val type_from_url : string -> mime_type
#
val check_type_ok : Support.Common.system -> mime_type -> unit
#
val unpack_over : ?extract:Support.Common.filepath -> General.config -> archive:Support.Common.filepath -> tmpdir:Support.Common.filepath -> destdir:Support.Common.filepath -> mime_type:mime_type -> unit Lwt.t

Unpack archive to a temporary directory and then move things into destdir, checking that we're not following symlinks at each stage. Use this when you want to unpack an archive into a directory which already has stuff in it.

extract treat this subdirectory of archive as the root to unpack.
tmpdir a directory on the same filesystem as destdir in which to create temporary directories.
end