Add option to set file modes

This commit is contained in:
Robin Appelman 2014-08-03 14:28:20 +02:00
commit 3888ae6b43
9 changed files with 235 additions and 89 deletions

View file

@ -87,16 +87,6 @@ interface IShare {
/**
* List the content of a remote folder
*
* Returns a nested array in the format of
* [
* $name => [
* 'size' => $size,
* 'type' => $type,
* 'time' => $mtime
* ],
* ...
* ]
*
* @param $path
* @return \Icewind\SMB\IFileInfo[]
*
@ -105,6 +95,14 @@ interface IShare {
*/
public function dir($path);
/**
* @param string $path
* @return \Icewind\SMB\IFileInfo
*
* @throws \Icewind\SMB\NotFoundException
*/
public function stat($path);
/**
* Create a folder on the share
*
@ -126,4 +124,11 @@ interface IShare {
* @throws \Icewind\SMB\InvalidTypeException
*/
public function rmdir($path);
/**
* @param string $path
* @param int $mode a combination of FileInfo::MODE_READONLY, FileInfo::MODE_ARCHIVE, FileInfo::MODE_SYSTEM and FileInfo::MODE_HIDDEN, FileInfo::NORMAL
* @return mixed
*/
public function setMode($path, $mode);
}