UnzipSetRootDir

Sets the root directory from which the names of extracted items are considered relative.

Synopsis

error = UnzipSetRootDir(ZipHandle, DirectoryName)

Args

ZipHandle is the handle returned by UnzipOpen.

DirectoryName is the desired directory, for example "C:\MyDir". If omitted, then the root directory is set to the current directory.

Returns

An empty string if the root directory is successfully set, or an error message if not. (If ZipErr is set to "NUM", then 0 is returned for success, or an error number).

Notes

Set the root directory after you have opened the archive with UnzipOpen, and before you set the current item with UnzipSetCurrentItem or UnzipFindItem.