I'm trying to code a simple application that must read all currently open files within a certain directory. More specificly, I want to get a list of files open anywhere inside my Documents folder, but I don't want only the processes' IDs or process name, I want the full path of the open file.
The thing is I haven't quite found anything to do that. I couldn't do it neither in linux shell (using ps and lsof commands) nor using python's psutil library. None of these is giving me the information I need, which is only the path of currently open files in a dir.
Any advice?
P.S: I'm tagging this as python question (besides os related tags) because it would be a plus if it could be done using some python library.