make sure path names are quoted when passing to lsof

This commit is contained in:
Martin Konecny 2013-02-25 16:44:28 -05:00
parent 57183b8ac8
commit deb50ea769
1 changed files with 1 additions and 1 deletions

View File

@ -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)