Add curl and ssh2 support for windows (#348)

* add curl and ssh2 support for windows

* add curl and ssh2 test for windows

* cs fix

* update README [skip ci]

* update README [skip ci]

* update README [skip ci]

* update README [skip ci]

* update README [skip ci]
This commit is contained in:
Jerry Ma
2024-02-22 14:37:10 +08:00
committed by GitHub
parent b0d8b00fcc
commit 3945ac037b
10 changed files with 244 additions and 32 deletions

View File

@@ -185,9 +185,11 @@ class FileSystem
}
if ($move_path !== null) {
$move_path = SOURCE_PATH . '/' . $move_path;
} else {
$move_path = SOURCE_PATH . "/{$name}";
}
logger()->info("extracting {$name} source to " . ($move_path ?? (SOURCE_PATH . "/{$name}")) . ' ...');
$target = self::convertPath($move_path ?? (SOURCE_PATH . "/{$name}"));
$target = self::convertPath($move_path);
logger()->info("extracting {$name} source to {$target}" . ' ...');
if (!is_dir($dir = dirname($target))) {
self::createDir($dir);
}