archiveIt.py 文件源码

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

项目:CyclopsVFX-Unity 作者: geoffroygivry 项目源码 文件源码
def CopyAndBag(self):

    #### Checking the Footage and then Copy
        for i in range (0,len(self.rdir)):
            if ('%' in self.tmpF[i]):
                ind = string.find(self.tmpF[i],'%',0,len(self.tmpF[i]))
                fname = self.tmpF[i][0:ind]
                enum = self.tmpF[i][ind:-4]
                ext = self.tmpF[i][-4:]
                seq = []
                for file in os.listdir(self.tmpD[i]):
                    if fnmatch.fnmatch(file, fname + '*'):
                        for j in range (self.stF[i],self.edF[i]):
                            if fnmatch.fnmatch(file, '*'+str(j) + ext):
                                filelist = list(file)
                                filelist1 = string.join(filelist,"")
                                seq.append(filelist1)
                for elm in seq: shutil.copy(self.tmpD[i] + elm, self.rdir[i] +elm)
            else: shutil.copy(self.tmpDir[i], self.rdir[i]+ self.tmpF[i])
        self.zipArchive()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号