protected function checkDirectory(&$directory)
    {
        $directory = trim($directory, '/');

        $this->checkDirectoryExists($directory);
        $this->checkDirectoryAccess($directory);
    }
protected function checkDirectory(&$directory)
    {
        $directory = trim($directory, '/');

        $this->checkDirectoryExists($directory);
        $this->checkDirectoryAccess($directory);
    }
protected function checkDirectory ( & $ directory ) { $ directory = trim ( $ directory , '/' ) ; $ this -> checkDirectoryExists ( $ directory ) ; $ this -> checkDirectoryAccess ( $ directory ) ; }
Check the given directory location.

@param  string  &$directory

@throws \Arcanesoft\Media\Exceptions\DirectoryNotFound
@throws \Arcanesoft\Media\Exceptions\AccessNotAllowed
Check the given directory location .