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

Method isDirectoryInList

syncplay/client.py:2352–2359  ·  view source on GitHub ↗
(self, directoryToFind, folderList)

Source from the content-addressed store, hash-verified

2350 return None
2351
2352 def isDirectoryInList(self, directoryToFind, folderList):
2353 if directoryToFind and folderList:
2354 normedDirectoryToFind = os.path.normcase(os.path.normpath(directoryToFind))
2355 for listedFolder in folderList:
2356 normedListedFolder = os.path.normcase(os.path.normpath(listedFolder))
2357 if normedDirectoryToFind.startswith(normedListedFolder):
2358 return True
2359 return False
2360
2361 def notifyUserIfFileNotInMediaDirectory(self, filenameToFind, path):
2362 directoryToFind = os.path.dirname(path)

Calls

no outgoing calls

Tested by

no test coverage detected