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)
|
self.config)
|
||||||
|
|
||||||
def getfolders(self):
|
def getfolders(self):
|
||||||
"""Returns a list of ALL folders on this server.
|
"""Returns a list of all cached folders."""
|
||||||
|
|
||||||
This is currently nowhere used in the code."""
|
|
||||||
if self._folders != None:
|
if self._folders != None:
|
||||||
return self._folders
|
return self._folders
|
||||||
|
|
||||||
|
self._folders = []
|
||||||
for folder in os.listdir(self.directory):
|
for folder in os.listdir(self.directory):
|
||||||
self._folders = retval.append(self.getfolder(folder))
|
self._folders.append(self.getfolder(folder))
|
||||||
return self._folders
|
return self._folders
|
||||||
|
|
||||||
def forgetfolders(self):
|
def forgetfolders(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user