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

Method isFileAvailable

syncplay/ui/gui.py:586–597  ·  view source on GitHub ↗
(self, filename)

Source from the content-addressed store, hash-verified

584
585 @needsClient
586 def isFileAvailable(self, filename):
587 if filename:
588 if filename == getMessage("nofile-note"):
589 return None
590 if isURL(filename):
591 return True
592 elif filename not in self.newWatchlist:
593 if self._syncplayClient.fileSwitch.findFilepath(filename):
594 return True
595 else:
596 self.newWatchlist.extend([filename])
597 return False
598
599 @needsClient
600 def showUserList(self, currentUser, rooms):

Callers 1

Calls 3

getMessageFunction · 0.90
isURLFunction · 0.90
findFilepathMethod · 0.80

Tested by

no test coverage detected