LocalStatus.py: Fix getfolders()
This code was unused and broken. It is still unused but this commit fixes it. (We should retain the method in case we ever start calling getfolders() on LocalStatus. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de> Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
parent
a38c6da49d
commit
97dbd18e12
@ -80,14 +80,13 @@ class LocalStatusRepository(BaseRepository):
|
||||
self.config)
|
||||
|
||||
def getfolders(self):
|
||||
"""Returns a list of ALL folders on this server.
|
||||
|
||||
This is currently nowhere used in the code."""
|
||||
"""Returns a list of all cached folders."""
|
||||
if self._folders != None:
|
||||
return self._folders
|
||||
|
||||
self._folders = []
|
||||
for folder in os.listdir(self.directory):
|
||||
self._folders = retval.append(self.getfolder(folder))
|
||||
self._folders.append(self.getfolder(folder))
|
||||
return self._folders
|
||||
|
||||
def forgetfolders(self):
|
||||
|
Loading…
Reference in New Issue
Block a user