Introduce FileInfo objects for the result of dir and add readable and hidden attributes to files

This commit is contained in:
Robin Appelman 2014-07-31 16:05:20 +02:00
commit 1c11289d36
7 changed files with 452 additions and 53 deletions

45
src/IFileInfo.php Normal file
View 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();
}