Quantcast
Channel: Get full path of currently open files - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by m.wasowski for Get full path of currently open files

This seems to work (on Linux): import subprocess import shlex cmd = shlex.split('lsof -F n +d .') try: output = subprocess.check_output(cmd).splitlines() except subprocess.CalledProcessError as err:...

View Article



Get full path of currently open files

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...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images