Quantcast
Channel: Get full path of currently open files - Stack Overflow
Browsing index pages (2 articles)
↧

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


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

Browsing index pages (2 articles)


Latest Images