Devise\Models\Scaffolding\SanityChecksHelper::checkDirectoryAndFileStatus PHP Method

checkDirectoryAndFileStatus() protected method

protected checkDirectoryAndFileStatus ( $path, $files ) : boolean
$path
$files
return boolean
    protected function checkDirectoryAndFileStatus($path, $files)
    {
        if (!$this->Framework->File->isDirectory($path)) {
            // Directory doesn't exist so let's make it
            return $this->Framework->File->makeDirectory($path, $mode = 0766, $recursive = true);
        }
        return true;
    }