mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-14 09:16:11 +01:00
add disk usage check
This commit is contained in:
@@ -1197,7 +1197,6 @@ class virtualHostUtilities:
|
||||
|
||||
@staticmethod
|
||||
def getDiskUsageofPath(path):
|
||||
|
||||
try:
|
||||
return subprocess.check_output('du -hs %s --block-size=1M' % (path), shell=True).decode("utf-8").split()[0]
|
||||
except BaseException:
|
||||
|
||||
Reference in New Issue
Block a user