示例#1
0
文件: dav_fs.py 项目: ccdos/OpenERP
    def copytree(self, src, dst, overwrite):
        """ copy a collection with Depth=infinity

        an alternative implementation would be

        result_code=201
        if overwrite:
            result_code=204
            r=os.system("rm -rf '%s'" %dst)
            if r: return 412
        r=os.system("cp -r '%s' '%s'" %(src,dst))
        if r: return 412
        return result_code

        (untested!). This would not use the davcmd functions
        and thus can only detect errors directly on the root node"""
        res = copytree(self, src, dst, overwrite)
        return res
示例#2
0
    def copytree(self, src, dst, overwrite):
        """ copy a collection with Depth=infinity

        an alternative implementation would be

        result_code=201
        if overwrite:
            result_code=204
            r=os.system("rm -rf '%s'" %dst)
            if r: return 412
        r=os.system("cp -r '%s' '%s'" %(src,dst))
        if r: return 412
        return result_code

        (untested!). This would not use the davcmd functions
        and thus can only detect errors directly on the root node"""
        res=copytree(self, src, dst, overwrite)
        return res
示例#3
0
    def copytree(self, src, dst, overwrite):
        """ copy a collection with Depth=infinity
        """

        return copytree(self, src, dst, overwrite)
示例#4
0
文件: webdav.py 项目: Sisouvan/ogh
 def copytree(self, src, dst, overwrite):
     return copytree(self, src, dst, overwrite)
示例#5
0
    def copytree(self,src,dst,overwrite):
        """ copy a collection with Depth=infinity
        """

        return copytree(self,src,dst,overwrite)
示例#6
0
 def copytree(self, src, dst, overwrite):
     return copytree(self, src, dst, overwrite)