(self, cont_dst_dir, files_list)
Verify if files already exists
Verify if files already exists
Verify if files already exists
def _files_exist(self, cont_dst_dir, files_list):
        """Verify if files already exists"""
        for fname in files_list:
            dstname = self.container_root + '/' + cont_dst_dir + '/' + fname
            if os.path.exists(dstname):
                raise OSError("file already exists", dstname)
def _files_exist ( self , cont_dst_dir , files_list ) : for fname in files_list : dstname = self . container_root + '/' + cont_dst_dir + '/' + fname if os . path . exists ( dstname ) : raise OSError ( "file already exists" , dstname )