connector: driver->_mkfile changed - now must return new file path or false. ftp driver - mkfile complete

This commit is contained in:
Dmitry (dio) Levashov
2011-11-10 01:22:20 +04:00
parent 8eb4344be7
commit 1e7f881a8e
4 changed files with 21 additions and 22 deletions
+5 -5
View File
@@ -411,11 +411,11 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
/******************** file/dir manipulations *************************/
/**
* Create dir
* Create dir and return created dir path or false on failed
*
* @param string $path parent dir path
* @param string $name new directory name
* @return bool
* @return string|bool
* @author Dmitry (dio) Levashov
**/
protected function _mkdir($path, $name) {
@@ -430,11 +430,11 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
}
/**
* Create file
* Create file and return it's path or false on failed
*
* @param string $path parent dir path
* @param string $name new file name
* @return bool
* @return string|bool
* @author Dmitry (dio) Levashov
**/
protected function _mkfile($path, $name) {
@@ -443,7 +443,7 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
if (($fp = @fopen($path, 'w'))) {
@fclose($fp);
@chmod($path, $this->options['fileMode']);
return true;
return $path;
}
return false;
}