Set basic permission bits

This commit is contained in:
adlawson 2015-08-03 20:08:03 +01:00
parent 880950780b
commit d814160c77
4 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;