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

Method isFileSame

syncplay/client.py:1326–1332  ·  view source on GitHub ↗
(self, file_)

Source from the content-addressed store, hash-verified

1324 self.file = file_
1325
1326 def isFileSame(self, file_):
1327 if not self.file:
1328 return False
1329 sameName = utils.sameFilename(self.file['name'], file_['name'])
1330 sameSize = utils.sameFilesize(self.file['size'], file_['size'])
1331 sameDuration = utils.sameFileduration(self.file['duration'], file_['duration'])
1332 return sameName and sameSize and sameDuration
1333
1334 def __lt__(self, other):
1335 if self.isController() == other.isController():

Callers 3

areAllFilesInRoomSameMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected