def share_files(self, triplet): """forward command to cache""" AbstractSharingData.share_files(self, triplet) path, names, share = triplet files = [os.path.join(path, name) for name in names] self._get_sharing_container(path).share_container(files, share)
def share_files(self, triplet): """forward command to cache""" AbstractSharingData.share_files(self, triplet) dir_path, names, share = triplet for name in names: self._set_file(os.path.join(dir_path, name), share=share)