public function setWorkingDirectory($path)
    {
        $path = $this->prefixDirectoryStack($path);

        if ($this->files->exists($path))
        {
            return $this->directoryStack[] = $path;
        }

        throw new DirectoryNotFoundException("Directory [{$path}] could not be found.");
    }
public function setWorkingDirectory($path)
    {
        $path = $this->prefixDirectoryStack($path);

        if ($this->files->exists($path))
        {
            return $this->directoryStack[] = $path;
        }

        throw new DirectoryNotFoundException("Directory [{$path}] could not be found.");
    }
public function setWorkingDirectory ( $ path ) { $ path = $ this -> prefixDirectoryStack ( $ path ) ; if ( $ this -> files -> exists ( $ path ) ) { return $ this -> directoryStack [ ] = $ path ; } throw new DirectoryNotFoundException ( "Directory [{$path}] could not be found." ) ; }
Set the working directory path.

@param  string  $path
@return string
@throws \Basset\Exceptions\DirectoryNotFoundException
Set the working directory path .