mirror of
https://github.com/adlawson/php-vfs.git
synced 2025-04-04 23:51:52 +00:00
Set basic permission bits
This commit is contained in:
parent
880950780b
commit
d814160c77
@ -30,7 +30,7 @@ class Directory implements NodeContainerInterface
|
|||||||
*/
|
*/
|
||||||
public function __construct(array $nodes = [])
|
public function __construct(array $nodes = [])
|
||||||
{
|
{
|
||||||
$this->mode = self::TYPE_DIR;
|
$this->mode = self::TYPE_DIR | self::OTHER_FULL;
|
||||||
|
|
||||||
$this->dateAccessed = new DateTime();
|
$this->dateAccessed = new DateTime();
|
||||||
$this->dateCreated = $this->dateAccessed;
|
$this->dateCreated = $this->dateAccessed;
|
||||||
|
@ -25,7 +25,7 @@ class DirectoryLink implements NodeContainerInterface, LinkInterface
|
|||||||
public function __construct(NodeContainerInterface $directory)
|
public function __construct(NodeContainerInterface $directory)
|
||||||
{
|
{
|
||||||
$this->directory = $directory;
|
$this->directory = $directory;
|
||||||
$this->mode = self::TYPE_LINK;
|
$this->mode = self::TYPE_LINK | self::OTHER_FULL;
|
||||||
|
|
||||||
$this->dateAccessed = new DateTime();
|
$this->dateAccessed = new DateTime();
|
||||||
$this->dateCreated = clone $this->dateAccessed;
|
$this->dateCreated = clone $this->dateAccessed;
|
||||||
|
@ -25,7 +25,7 @@ class File implements FileInterface
|
|||||||
public function __construct($content = '')
|
public function __construct($content = '')
|
||||||
{
|
{
|
||||||
$this->content = (string) $content;
|
$this->content = (string) $content;
|
||||||
$this->mode = self::TYPE_FILE;
|
$this->mode = self::TYPE_FILE | self::OTHER_FULL;
|
||||||
|
|
||||||
$this->dateAccessed = new DateTime();
|
$this->dateAccessed = new DateTime();
|
||||||
$this->dateCreated = clone $this->dateAccessed;
|
$this->dateCreated = clone $this->dateAccessed;
|
||||||
|
@ -25,7 +25,7 @@ class FileLink implements FileInterface, LinkInterface
|
|||||||
public function __construct(FileInterface $file)
|
public function __construct(FileInterface $file)
|
||||||
{
|
{
|
||||||
$this->file = $file;
|
$this->file = $file;
|
||||||
$this->mode = self::TYPE_LINK;
|
$this->mode = self::TYPE_LINK | self::OTHER_FULL;
|
||||||
|
|
||||||
$this->dateAccessed = new DateTime();
|
$this->dateAccessed = new DateTime();
|
||||||
$this->dateCreated = clone $this->dateAccessed;
|
$this->dateCreated = clone $this->dateAccessed;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user