def get_disk_usage():
 files_path = get_files_path()
 if (not os.path.exists(files_path)):
  return 0
 (err, out) = execute_in_shell(u'du -hsm {files_path}'.format(files_path=files_path))
 return cint(out.split(u'\n')[(-2)].split(u' DCTB ')[0])

def get_disk_usage ( ) : files_path = get_files_path ( ) if ( not os . path . exists ( files_path ) ) : return 0 ( err , out ) = execute_in_shell ( u'du -hsm {files_path}' . format ( files_path = files_path ) ) return cint ( out . split ( u'\n' ) [ ( - 2 ) ] . split ( u' DCTB ' ) [ 0 ] )
get disk usage in bytes for directory .