def cwd(self,path):
#-----------------------------------------------------------------------------
# Name: cwd fuction
# param: path :cd to the path,please write absolute path
# explain: cd to this path
# Author: gongke
#
# Created: 2013/01/13
#-----------------------------------------------------------------------------
try:
self.mftp.cwd(path)
except ftplib.error_perm:
#print "cannot cd to this path %s" %path
print_mes = "cannot cd to this path " +path
print print_mes
info_public(print_mes)
self.mftp.quit()
return False
#print "cd %s" %path
print_mes = "cd " +path
print print_mes
info_public(print_mes)
return True
ftp_class.py 文件源码
python
阅读 22
收藏 0
点赞 0
评论 0
评论列表
文章目录