mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
Introduce FileInfo objects for the result of dir and add readable and hidden attributes to files
This commit is contained in:
parent
b2edd174f1
commit
1c11289d36
7 changed files with 452 additions and 53 deletions
45
src/IFileInfo.php
Normal file
45
src/IFileInfo.php
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
<?php
|
||||
/**
|
||||
* Copyright (c) 2014 Robin Appelman <icewind@owncloud.com>
|
||||
* This file is licensed under the Licensed under the MIT license:
|
||||
* http://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
namespace Icewind\SMB;
|
||||
|
||||
interface IFileInfo {
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getPath();
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getName();
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getSize();
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getMTime();
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function isDirectory();
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function isReadOnly();
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function isHidden();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue