From c174ebe38336cc5d7e0ee243ddbbc071ea2656df Mon Sep 17 00:00:00 2001 From: Kevin Alberts Date: Sun, 26 Apr 2020 13:30:00 +0200 Subject: [PATCH] Do not print open directories to save space --- lsof_spy.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lsof_spy.py b/lsof_spy.py index 754668d..335cd70 100644 --- a/lsof_spy.py +++ b/lsof_spy.py @@ -116,9 +116,9 @@ for host in sorted(host_data.keys()): if flen > 0: for f in sorted(data['files']): smb_result += " - {}\n".format(f) - elif dlen > 0: - for d in sorted(data['dirs']): - smb_result += " - {}\n".format(d) + # elif dlen > 0: + # for d in sorted(data['dirs']): + # smb_result += " - {}\n".format(d) ###