protected function folderIsNotAccessible(Request $request)
    {
        if (isset($request['folder']) && empty($request->get('folder'))) {
            return true;
        }

        return ! Storage::exists($this->currentDir) && $request->has('folder') || $request->get('folder') === 'public';
    }