Is it possible to get the GUID of a file in Python?
This article shows how to create one in C, but I don't know how to translate it to Python.
Here is the reason why I need it. If you think there is a better way to solve my problem, please answer (and I will change the title if necessary).
I have a database table with one column containing file path names. The records become useless when a file or a folder is renamed.
I thought about adding a column with the GUID of the file. Then when a function is called with the path name, if the record with the path name is missing, the function will get the GUID from the file and search in the table by GUID.