(slef)
| 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列表""" |