ftp_class.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:Automation-Framework-for-devices 作者: tok-gogogo 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号