storage: remove listdir_with_metadata() method

It's not used anymore since the database layer was added