Fix uploading from Windows to Unix.

This commit is contained in:
Anton Medvedev 2015-05-16 00:25:35 +07:00
parent e18977e18c
commit 4f16be0a98
2 changed files with 4 additions and 0 deletions

View File

@ -124,6 +124,8 @@ class PhpSecLib implements ServerInterface
{
$this->checkConnection();
$remote = str_replace('\\', '/', $remote);
$dir = dirname($remote);
if (!isset($this->directories[$dir])) {

View File

@ -120,6 +120,8 @@ class SshExtension implements ServerInterface
{
$this->checkConnection();
$remote = str_replace('\\', '/', $remote);
$dir = dirname($remote);
if (!isset($this->directories[$dir])) {