protected function normalizeResponse($obj) {
        $result = ['path' => ltrim($this->removePathPrefix($obj->getPathDisplay()), '/')];

        $objClass = get_class($obj);
        switch ($objClass) {
            case 'Kunnu\Dropbox\Models\FolderMetadata':
                $result['type'] = 'dir';
                break;
            
            case 'Kunnu\Dropbox\Models\FileMetadata':
            default:
                $result['type'] = 'file';
                $result['size'] = $obj->getSize();
                $result['mimetype'] = MimeType::detectByFilename($obj->getName());
                $result['timestamp'] = strtotime($obj->getServerModified());
                break;
        }
        return $result;
    }