My goal is to find out if the file is locked by another process or not, even if I do not have access to this file!
Therefore, to be more clear, let's say I open the file using python builtin open () with the wb switch (for writing). open () will raise an IOError with errno 13 (EACCES) if
- user does not have permission to file or
- file locked by another process
How can I identify case (2) here?
my target platform is Windows!
source share