Update storage.php

This commit is contained in:
Namhyeon Go 2018-09-03 10:16:03 +09:00 committed by GitHub
parent a6ee3a8071
commit 4064147277
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,6 +146,14 @@ if(!function_exists("remove_storage_file")) {
$upload_filename = $upload_base_path . "/" . $filename;
if(file_exists($upload_filename)) {
if(!array_key_empty("chmod", $options)) {
@chmod($upload_filename, $options['chmod']);
}
if(!array_key_empty("chown", $options)) {
@chown($upload_filename, $options['chown']);
}
if(!array_key_empty("shell", $options)) {
if(loadHelper("exectool")) {
$exec_cmd = ($options['shell'] == "windows") ? "del '%s'" : "rm -f '%s'";