diff options
Diffstat (limited to 'apps/files_external/3rdparty/icewind/smb/src/Wrapped/FileInfo.php')
-rw-r--r-- | apps/files_external/3rdparty/icewind/smb/src/Wrapped/FileInfo.php | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/apps/files_external/3rdparty/icewind/smb/src/Wrapped/FileInfo.php b/apps/files_external/3rdparty/icewind/smb/src/Wrapped/FileInfo.php index 094e665a935..a310a6bc913 100644 --- a/apps/files_external/3rdparty/icewind/smb/src/Wrapped/FileInfo.php +++ b/apps/files_external/3rdparty/icewind/smb/src/Wrapped/FileInfo.php @@ -7,6 +7,7 @@ namespace Icewind\SMB\Wrapped; +use Icewind\SMB\ACL; use Icewind\SMB\IFileInfo; class FileInfo implements IFileInfo { @@ -36,18 +37,25 @@ class FileInfo implements IFileInfo { protected $mode; /** + * @var callable + */ + protected $aclCallback; + + /** * @param string $path * @param string $name * @param int $size * @param int $time * @param int $mode + * @param callable $aclCallback */ - public function __construct($path, $name, $size, $time, $mode) { + public function __construct($path, $name, $size, $time, $mode, callable $aclCallback) { $this->path = $path; $this->name = $name; $this->size = $size; $this->time = $time; $this->mode = $mode; + $this->aclCallback = $aclCallback; } /** @@ -112,4 +120,11 @@ class FileInfo implements IFileInfo { public function isArchived() { return (bool)($this->mode & IFileInfo::MODE_ARCHIVE); } + + /** + * @return ACL[] + */ + public function getAcls(): array { + return ($this->aclCallback)(); + } } |