Compare commits

..

No commits in common. 'f17a35cf159c9214ccb7434906fb2d556fc119a3' and '328e27fc4d3b03f6b09d179997e3c94ea3215cc7' have entirely different histories.

@ -63,9 +63,8 @@ def read(**args) :
elif 'cmd' in args :
cmd = args['cmd']
if cmd :
handler = subprocess.Popen(cmd,shell=True,stdout=subprocess.PIPE,encoding='utf-8')
stream = str(handler.communicate()[0]) #.decode('utf-8') #.replace("b'",'')
handler = subprocess.Popen(cmd,shell=True,stdout=subprocess.PIPE)
stream = str(handler.communicate()[0]).replace("b'",'')
return _parser (stream) if _parser else stream

@ -35,7 +35,7 @@ class Util :
def read(**args):
"""
The path can also take in regular expressions, this only works for linux based systems.
The path can also take in regular expressions
"""
cmd = {"size":"du -sh :path","content":"find :path -type f -exec md5sum {} + | sort -z|md5sum"}
r = {}

@ -1,6 +1,6 @@
import os
__app_name__= "smart-logger"
__version__ = "1.16"
__version__ = "1.14"
__author__ = "Steve L. Nyemba, info@the-phi.com"
__home__ = os.sep.join([os.environ['HOME'],'.smart-logger'])
__database__='smart_logs'

Loading…
Cancel
Save