How to read and change file properties from Python. Add / change read access, write delete? enter image description here

need something like os.path.getctime(path) but only for file permissions?
In addition, I need to add write-delete access to me as an active user.

Background
OneDrive is stuck on file synchronization after transferring the storage location of the synchronized files to another screw. GOOGLE advised to check access. And - yes!
Fingering access to files, I came across this:

enter image description here

that is, the file was downloaded from the cloud, but I don’t have access to it. It’s impossible to search many files in all folders manually .... but I don’t even know how to ask GOOGLE.

That is, I want to go through the folder with subfolders, to find files that I do not have the rights to change and give them full access. But I did not find similar properties of the file in os and os.path. Looking bad?

  • one
    as an option to use os.system("icacls 'c:\folder\file' /q /c /t /grant Users:F") - super16
  • Well, yes, it is easier for everyone to register access than to search for those who did not give it ... And I will do it) Without programming)) - Vasyl Kolomiets

0