mirror of
https://github.com/adlawson/php-vfs.git
synced 2024-11-25 06:07:40 +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 = [])
|
||||
{
|
||||
$this->mode = self::TYPE_DIR;
|
||||
$this->mode = self::TYPE_DIR | self::OTHER_FULL;
|
||||
|
||||
$this->dateAccessed = new DateTime();
|
||||
$this->dateCreated = $this->dateAccessed;
|
||||
|
@ -25,7 +25,7 @@ class DirectoryLink implements NodeContainerInterface, LinkInterface
|
||||
public function __construct(NodeContainerInterface $directory)
|
||||
{
|
||||
$this->directory = $directory;
|
||||
$this->mode = self::TYPE_LINK;
|
||||
$this->mode = self::TYPE_LINK | self::OTHER_FULL;
|
||||
|
||||
$this->dateAccessed = new DateTime();
|
||||
$this->dateCreated = clone $this->dateAccessed;
|
||||
|
@ -25,7 +25,7 @@ class File implements FileInterface
|
||||
public function __construct($content = '')
|
||||
{
|
||||
$this->content = (string) $content;
|
||||
$this->mode = self::TYPE_FILE;
|
||||
$this->mode = self::TYPE_FILE | self::OTHER_FULL;
|
||||
|
||||
$this->dateAccessed = new DateTime();
|
||||
$this->dateCreated = clone $this->dateAccessed;
|
||||
|
@ -25,7 +25,7 @@ class FileLink implements FileInterface, LinkInterface
|
||||
public function __construct(FileInterface $file)
|
||||
{
|
||||
$this->file = $file;
|
||||
$this->mode = self::TYPE_LINK;
|
||||
$this->mode = self::TYPE_LINK | self::OTHER_FULL;
|
||||
|
||||
$this->dateAccessed = new DateTime();
|
||||
$this->dateCreated = clone $this->dateAccessed;
|
||||
|
Loading…
Reference in New Issue
Block a user