btu/common/filesystem.hpp file

Namespaces

namespace btu
namespace btu::common

Functions

auto compare_directories(const Path& dir1, const Path& dir2) →  bool noexcept
auto compare_files(const Path& filename1, const Path& filename2) →  bool noexcept
auto find_matching_paths_icase(const btu::Path& directory, std::span<const btu::Path> relative_lowercase_paths) →  std::vector<btu::Path> noexcept
auto hard_link(const Path& from, const Path& to) →  tl::expected<void, Error> noexcept
auto read_file(const Path& a_path) →  tl::expected<std::vector<std::byte>, Error> noexcept
auto write_file(const Path& a_path, std::span<const std::byte> data) →  tl::expected<void, Error> noexcept
auto write_file_new(const Path& a_path, std::span<const std::byte> data) →  tl::expected<void, Error> noexcept