makeDirectory.

@return $this
180127
public function makeDirectory($path)
    {
        if ($this->files->isDirectory($path) === false) {
            $this->files->makeDirectory($path, 0777, true, true);
        }

        return $this;
    }
1373457
public function setDir($dir = null){
        $this->databaseDir = (is_null($dir)) ? realpath(__DIR__).DIRECTORY_SEPARATOR.'database'.DIRECTORY_SEPARATOR : $dir;
        return $this;
    }
856138
protected function checkDirectory()
    {
        $directoryPath = $this
            ->directory
            ->getDirectoryPath();

        if (!is_dir($directoryPath)) {

            mkdir($directoryPath);
        }

        return $this;
    }
94470
public function refresh() {

		$directory = new Directory($this -> directory -> getPath());
		$this -> directory = $directory -> entity();

		return $this;
	}
916207
protected function createDirectories()
    {
        if (! is_dir($directory = $this->getViewPath('layouts'))) {
            mkdir($directory, 0755, true);
        }

        if (! is_dir($directory = $this->getViewPath('auth/passwords'))) {
            mkdir($directory, 0755, true);
        }
    }
913509
def make_dir(self):
        """"""
        if not os.path.exists(self.dirname):
            os.makedirs(self.dirname)
164867
protected function makeDir($target)
    {
        if (!file_exists(dirname($target))) {
            mkdir(dirname($target), 0777, true);
        }

        return $this;
    }
444249
public function makePath()
    {
        $path = base_path('src');

        if (!File::exists($path)) {
            File::makeDirectory($path, 0775, true);
        }
    }
1043697
public function makeDirectory($mode = FileSystemPermission::NORMAL)
    {
        $directory = $this->factory->makeDirectory($mode);
        $this->container->add($directory);

        return $directory;
    }
397585
static public function
	MakeDirectory($dir) {
	/*//
	@argv string Directory
	@return bool

	make a directory. returns if successful or not. allows you to
	blindly call it if it already exists to ensure it exists.
	//*/

		// if it already exists...
		if(is_dir($dir)) return true;

		// make it...
		$umask = umask(0);
		@mkdir($dir,0777,true);
		umask($umask);

		// find out if it was successful, lol.
		return is_dir($dir);
	}
1261626
protected function makeDir($directory)
	{
		if ( ! $this->files->isDirectory($this->getPath($directory)))
		{
			$this->files->makeDirectory($this->getPath($directory), 0777, true);
		}
	}
84454
protected function createDirectory($type)
    {
        if(is_array($directories = $this->getDirOption(true))) {
            $function = 'get' . ucfirst($type) . 'Directory';
            $directory_array = [];
            $directory_paths = [];
            if($directories) {
                foreach($directories as $directory) {
                    array_push($directory_array, $directory);
                    array_push($directory_paths, implode('/', $directory_array));
                    if($directory_paths) {
                        foreach($directory_paths as $directory_path) {
                            if( ! $this->files->isDirectory($this->{$function}() . $directory_path)) {
                                $this->files->makeDirectory($this->{$function}() . $directory_path);
                            }
                        }
                    }
                }
            }
        }
    }
1056636
public function makeBaseDirectory()
    {
        $this->path = $this->config->get('tie.root') . '/' . $this->vendor . '/' . $this->package;

        $this->makeDir($this->path);
    }
1175420
protected function createDirectory($directory)
    {
        $isCreated = file_exists($directory) || is_dir($directory) || mkdir($directory, 0777, true);
        
        if (!$isCreated)
            throw new RuntimeException('Cannot create directory ":dir" for generated classed', ['dir' => $directory]);
        
        return $this;
    }
569031
public function addDirectory($path)
    {
        $finder = new Finder();
        $finder->files()
            ->ignoreVCS(true)
            ->name('*.php')
            ->in($path);

        foreach ($finder as $file) {
            $this->addFile($file);
        }

        return $this;
    }
1232352
protected function prepareAndGetDirectory()
    {
        if (! $this->filesystem->isDirectory($this->directory)) {
            $this->filesystem->makeDirectory($this->directory, 0755, true);
        }

        return $this->directory;
    }
639718
private function createPreviewDirectory()
    {
        if (!$this->files->exists($this->storage())) {
            $this->files->makeDirectory($this->storage());

            $this->files->put($this->storage().'/.gitignore', "*\n!.gitignore");
        }
    }