audeering / audbackend

Manage file storage on different backends
https://audeering.github.io/audbackend/
Other
3 stars 0 forks source link

Fix Versioned.ls(file, pattern=...) #198

Closed frankenjoe closed 3 months ago

frankenjoe commented 3 months ago

Closes https://github.com/audeering/audbackend/issues/196

We first to call backend.ls() without passing pattern. If this returns an empty list we raise an error. Otherwise, we know that the directory exists. Now we apply pattern and return a possibly empty list.