coastline 0.0.4
Loading...
Searching...
No Matches
filebrowser.h File Reference

The listing of a directory for the file browser of the setup wizard. More...

#include <filesystem>
#include <optional>
#include <span>
#include <string>
#include <string_view>
#include <vector>
#include "../paths.h"
Include dependency graph for filebrowser.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  coastline::BrowserEntry
 An entry of a listing of the file browser. More...

Namespaces

namespace  coastline

Functions

std::optional< std::vector< BrowserEntry > > coastline::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, then the directories, then the files with one of extensions.
std::filesystem::path coastline::ResolveUserPath (std::string_view text, const std::filesystem::path &home)
 Expand an initial home-directory shorthand and use native separators after expansion.
std::filesystem::path coastline::PathFromUtf8 (std::string_view text)
std::string coastline::LowercaseExtension (const std::filesystem::path &path)

Detailed Description

The listing of a directory for the file browser of the setup wizard.