std::filesystem::path ResolveUserPath(std::string_view text, const std::filesystem::path &home)
Expand an initial home-directory shorthand and use native separators after expansion.
std::optional< std::vector< BrowserEntry > > ListBrowserDirectory(const std::filesystem::path &directory, std::span< const std::string_view > extensions, bool directoriesOnly=false)
List a directory for the file browser: .. first, or on Windows the drives at the root of a drive,...
An entry of a listing of the file browser.
Definition filebrowser.h:20
Kind kind
Definition filebrowser.h:28
std::filesystem::path path
Definition filebrowser.h:29
Kind
What an entry opens or chooses.
Definition filebrowser.h:22
@ File
Definition filebrowser.h:26
@ Parent
Definition filebrowser.h:23
@ Directory
Definition filebrowser.h:25
@ Drive
Definition filebrowser.h:24
std::string label
Definition filebrowser.h:31
std::string name
Definition filebrowser.h:30