Update storage.php

This commit is contained in:
Namhyeon Go 2020-06-16 16:50:17 +09:00 committed by GitHub
parent 3621d23a37
commit 6c24844935
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,14 +28,13 @@ if(!is_fn("get_current_working_dir")) {
break; break;
case "windows": case "windows":
if(loadHelper("exectool")) { if(loadHelper("exectool")) {
$exec_contents = implode("\r\n", array("@echo off", "SET var=%cd%", "ECHO %var%")); $exec_contents = implode("\r\n", array("@echo off", "ECHO %cd%"));
$exec_file = write_storage_file($exec_contents, array( $exec_file = write_storage_file($exec_contents, array(
"filename" => "pwd.bat" "filename" => "pwd.bat"
)); ));
$working_dir = exec_command($exec_file); $working_dir = exec_command($exec_file);
} }
break; break;
} }
return $working_dir; return $working_dir;
@ -60,7 +59,7 @@ if(!is_fn("get_storage_path")) {
if(!is_dir($dir_path)) { if(!is_dir($dir_path)) {
if(!@mkdir($dir_path, 0777)) { if(!@mkdir($dir_path, 0777)) {
set_error("can not create directory. " . $dir_path); set_error("Could not create directory. " . $dir_path);
show_errors(); show_errors();
} }
} }