Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
muhammadalie opened this issue Jul 28, 2023 · 1 comment
Labels
question Further information is requested

Comments

@muhammadalie
Copy link

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 ?

@shcheklein shcheklein added the question Further information is requested label Jul 28, 2023
@shcheklein
Copy link
Member

Yes, we can try to add the ids. (fsspec for PyDrive is quite broken though in many places for a general use- i would recommend to be careful with it. )

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants