|
|
@ -514,6 +514,12 @@ def removeDir(rmDir):
|
|
|
|
rmtree(rmDir)
|
|
|
|
rmtree(rmDir)
|
|
|
|
return True
|
|
|
|
return True
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def getRunCommands():
|
|
|
|
|
|
|
|
"""List run program"""
|
|
|
|
|
|
|
|
return map(lambda x:open('/proc/%s/cmdline'%x).read().strip(),
|
|
|
|
|
|
|
|
filter(lambda x:x.isdigit(),
|
|
|
|
|
|
|
|
os.listdir('/proc')))
|
|
|
|
|
|
|
|
|
|
|
|
def isMount(path):
|
|
|
|
def isMount(path):
|
|
|
|
"""В случае монтирования директории выдает другой примонтированный путь"""
|
|
|
|
"""В случае монтирования директории выдает другой примонтированный путь"""
|
|
|
|
absPath = os.path.abspath(path)
|
|
|
|
absPath = os.path.abspath(path)
|
|
|
|