- def _get_path(self, type, name):
- return "%s/%s" % (self.prefix, name)
-
- def list(self, type):
- files = os.listdir(self.prefix)
- return (f for f in files if type_patterns[type].match(f))
+ def list(self, subdir):
+ try:
+ return os.listdir(os.path.join(self.prefix, subdir))
+ except OSError:
+ raise cumulus.store.NotFoundError(subdir)