iterative / iterative/PyDrive2

How to distinguish between same-named files and directories in Google Drive

Aperta
#295 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
question
Lingua principale
Python
Stelle
670
Fork
75
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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 ?

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.