I'm trying in google colab to get the file ID of a file stored on my google drive.
When the file is created by a function inside google colab, I get a file ID in the form of "local-xxx" instead of the actual file ID. When the file is manually uploaded to google drive, I get the correct ID.
Could you please help me fix this? Posting my code below
image_drive_url = "/content/gdrive/MyDrive/"+file_name+".png"
image_id = getoutput("xattr -p 'user.drive.id' '%s'" % image_drive_url)
print(image_id)
prints: local-702 instead of the actual file ID