iterative / iterative/PyDrive2
How to distinguish between same-named files and directories in Google Drive
- Dominant language
- Python
- Stars
- 670
- Forks
- 75
- PR merge metrics
- No merged PRs in 30d
Description
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 ?
Contributor guide
Assessment
This issue has not been assessed yet.