iterative / iterative/PyDrive2

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

Abierto
#295 1 comentario 0 reacciones 0 asignados Ver en GitHub
question
Lenguaje dominante
Python
Estrellas
670
Forks
75
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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 ?

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
python
Área
api
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.