MCPcopy Create free account
hub / github.com/aaPanel/BaoTa / get_ftp_status

Method get_ftp_status

script/btcli.py:523–530  ·  view source on GitHub ↗
(slef)

Source from the content-addressed store, hash-verified

521 self.ftp_obj = ftp.ftp()
522
523 def get_ftp_status(slef):
524 if not os.path.exists("/www/server/pure-ftpd/bin/pure-pw"):
525 return False
526 result = public.ExecShell("ps -ef|grep pure-ftpd|grep -v grep")[0].strip()
527 if not "pure-ftpd" in result:
528 return False
529 else:
530 return True
531
532 def list_ftp(self):
533 """显示FTP列表"""

Callers 2

site_menuMethod · 0.80
ftp_menuMethod · 0.80

Calls 2

ExecShellMethod · 0.80
existsMethod · 0.45

Tested by

no test coverage detected