コード例 #1
0
 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)
コード例 #2
0
 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)