function imce_unzip_file in IMCE unzip 6
Same name and namespace in other branches
- 7 imce_unzip.module \imce_unzip_file()
unzip a file in the file list.
1 string reference to 'imce_unzip_file'
- imce_unzip_submit in ./
imce_unzip.module - Submit unzip form.
File
- ./
imce_unzip.module, line 101 - Main functions for IMCE unzip module
Code
function imce_unzip_file($filename, &$imce, $delete_zip_file) {
$filepath = file_directory_path() . ($imce['dir'] == '.' ? '' : '/' . $imce['dir']) . '/' . $filename;
if (file_exists($filepath)) {
$file = new stdClass();
$file->filename = $filename;
$file->filepath = $filepath;
$file->filemime = file_get_mimetype($filename);
return _imce_unzip_file_unzip($file, $imce, $delete_zip_file);
}
return TRUE;
}