unified mkdir mode
This commit is contained in:
parent
ca3dc31057
commit
85d99057fb
@ -40,7 +40,7 @@ class Store
|
|||||||
{
|
{
|
||||||
$this->root = $root;
|
$this->root = $root;
|
||||||
if (!is_dir($this->root)) {
|
if (!is_dir($this->root)) {
|
||||||
mkdir($this->root, 0755, true);
|
mkdir($this->root, 0777, true);
|
||||||
}
|
}
|
||||||
$this->keyCache = new \SplObjectStorage();
|
$this->keyCache = new \SplObjectStorage();
|
||||||
$this->locks = array();
|
$this->locks = array();
|
||||||
@ -313,7 +313,7 @@ class Store
|
|||||||
{
|
{
|
||||||
$path = $this->getPath($key);
|
$path = $this->getPath($key);
|
||||||
if (!is_dir(dirname($path))) {
|
if (!is_dir(dirname($path))) {
|
||||||
mkdir(dirname($path), 0755, true);
|
mkdir(dirname($path), 0777, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
$tmpFile = tempnam(dirname($path), basename($path));
|
$tmpFile = tempnam(dirname($path), basename($path));
|
||||||
|
@ -60,7 +60,7 @@ class AssetsInstallCommand extends Command
|
|||||||
$targetDir = $input->getArgument('target').'/bundles/'.preg_replace('/bundle$/', '', strtolower($bundle->getName()));
|
$targetDir = $input->getArgument('target').'/bundles/'.preg_replace('/bundle$/', '', strtolower($bundle->getName()));
|
||||||
|
|
||||||
$filesystem->remove($targetDir);
|
$filesystem->remove($targetDir);
|
||||||
mkdir($targetDir, 0755, true);
|
mkdir($targetDir, 0777, true);
|
||||||
$filesystem->mirror($originDir, $targetDir);
|
$filesystem->mirror($originDir, $targetDir);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user