iterative / iterative/PyDrive2
How to distinguish between same-named files and directories in Google Drive
- 主要言語
- Python
- スター
- 670
- フォーク
- 75
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
How to distinguish between same-named files and directories in Google Drive ?
In my GDrive, I have encountered a situation where there are two files with the same name (test1) and identical sizes. To obtain the list of files along with their details, I used fsspec.ls with detail=True, resulting in the following output:
```
[{'type': 'file', 'name': 'root/testFolder/test1', 'size': 1024, 'checksum': None}, {'type': 'file', 'name': 'root/testFolder/test1', 'size': 1024, 'checksum': None}]
```
As you can see, both files have the same name and path. Now, I am uncertain about which file will be downloaded if I attempt to do so using the provided name.
will it fix If we add item_ids in metadata ?
コントリビューションガイド
調査の方向性
Start by tracing how fsspec.ls with detail=True represents Google Drive items and how downloads resolve a name when duplicates exist. Check whether item IDs are available in the returned metadata; done should define a reliable way to distinguish duplicate files and make the selected download behavior clear.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- api
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100