def listdir(self, path): """ Lists the contents of the specified path, returning a 2-tuple of lists; the first item being directories, the second item being files. """ files = [] if path and not path.endswith('/'): path = '%s/' % path path_len = len(path) if not path: path = None blob_list = self._get_service().list_blobs(self.container, prefix=path) for name in blob_list: files.append(name[path_len:]) return ([], files)