[Mammoth] Add a call for listing a directory.

This commit is contained in:
Drew Galbraith 2023-11-26 14:48:20 -08:00
parent d0a3bf3936
commit e0bf7a9a1c
2 changed files with 33 additions and 6 deletions

View file

@ -1,6 +1,9 @@
#pragma once
#include <glacier/container/vector.h>
#include <glacier/memory/move.h>
#include <glacier/status/error_or.h>
#include <glacier/string/string.h>
#include <glacier/string/string_view.h>
#include "mammoth/util/memory_region.h"
@ -29,4 +32,7 @@ class File {
: file_data_(glcr::Move(file)), size_(size) {}
};
// TODO: Move this to a separate file.
glcr::ErrorOr<glcr::Vector<glcr::String>> ListDirectory(glcr::StringView path);
} // namespace mmth