make sure path names are quoted when passing to lsof
This commit is contained in:
parent
57183b8ac8
commit
deb50ea769
|
@ -166,7 +166,7 @@ def walk_supported(directory, clean_empties=False):
|
|||
|
||||
|
||||
def file_locked(path):
|
||||
proc = Popen(["lsof", path], stdout=PIPE)
|
||||
proc = Popen(["lsof", '"%s"' % path], stdout=PIPE)
|
||||
out = proc.communicate()[0].strip('\r\n')
|
||||
return bool(out)
|
||||
|
||||
|
|
Loading…
Reference in New Issue