Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 167eb32

Browse files
committed
Merge branch 'develop' of http://github.com/pydio/pydio-core into develop
* 'develop' of http://github.com/pydio/pydio-core: remove config file phan static analyzer config PHP7
2 parents 76ecd89 + bca0a1b commit 167eb32

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

core/src/plugins/access.sftp_psl/SftpPSLAccessDriver.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
use DOMNode;
2626
use PclZip;
27+
use Pydio\Access\Core\Model\AJXP_Node;
2728
use Pydio\Access\Core\Model\UserSelection;
2829
use Pydio\Access\Driver\StreamProvider\FS\FsAccessDriver;
2930
use Pydio\Core\Model\ContextInterface;
@@ -173,8 +174,12 @@ public function recursiveRmdir($path)
173174
return false;
174175
}
175176

176-
public function isWriteable($dir, $type="dir")
177+
/**
178+
* @param AJXP_Node $node
179+
* @return bool
180+
*/
181+
public function isWriteable(AJXP_Node $node)
177182
{
178-
return is_writable($dir);
183+
return is_writable($node->getUrl());
179184
}
180185
}

0 commit comments

Comments
 (0)