2016-09-19 11:50:08 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "expected.h"
|
|
|
|
#include <filesystem>
|
|
|
|
|
|
|
|
namespace vcpkg {namespace Files
|
|
|
|
{
|
2016-09-24 08:57:18 +08:00
|
|
|
static const char* FILESYSTEM_INVALID_CHARACTERS = R"(\/:*?"<>|)";
|
|
|
|
|
2016-09-19 11:50:08 +08:00
|
|
|
void check_is_directory(const std::tr2::sys::path& dirpath);
|
|
|
|
|
2016-09-24 08:57:18 +08:00
|
|
|
bool has_invalid_chars_for_filesystem(const std::string s);
|
|
|
|
|
2016-09-19 11:50:08 +08:00
|
|
|
expected<std::string> get_contents(const std::tr2::sys::path& file_path) noexcept;
|
2016-09-22 12:43:59 +08:00
|
|
|
|
|
|
|
std::tr2::sys::path find_file_recursively_up(const std::tr2::sys::path& starting_dir, const std::string& filename);
|
2016-09-19 11:50:08 +08:00
|
|
|
}}
|