box / box/box-python-sdk

Why is there a difference?

オープン
#1,159 コメント 4 件 リアクション 0 件 担当者 6 名 @mwwoda が担当を希望しています GitHub で見る
bug dontstale
主要言語
Python
スター
459
フォーク
223
平均マージ
8時間 57分
マージ済み PR(30日)
13

説明

When I get a folder information with "client.folders.get_folder_by_id(folder_id, fields=['name', 'path_collection'])", I can get a path_collection that is a FolderPathCollectionField object.

But when I get a subfolder information with "client.folders.get_folder_items(folder_id, fields=['name', 'path_collection'])", I got a path_collection that is a dict type. I known the subfolder is a FolderMini type.

So, when I treat a path_collection, I must distinct the folder type (FolderFull or FolderMini).
Or have any good way to treat them no need to judge them?

Thanks.

### Versions Used

Python SDK: 1.7.0
Python: 3.10.12

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。