MCPcopy Create free account
hub / github.com/Syncplay/syncplay / getSanitizedCurrentUserFile

Method getSanitizedCurrentUserFile

syncplay/client.py:703–712  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

701 self.addPlayerReadyCallback(lambda x: self.sendFeaturesToPlayer())
702
703 def getSanitizedCurrentUserFile(self):
704 if self.userlist.currentUser.file:
705 file_ = deepcopy(self.userlist.currentUser.file)
706 if constants.PRIVATE_FILE_FIELDS:
707 for PrivateField in constants.PRIVATE_FILE_FIELDS:
708 if PrivateField in file_:
709 file_.pop(PrivateField)
710 return file_
711 else:
712 return None
713
714 def sendFile(self):
715 file_ = self.getSanitizedCurrentUserFile()

Callers 1

sendFileMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected