vcpkg/toolsrc/include/vcpkg_Files.h

18 lines
508 B
C
Raw Normal View History

2016-09-19 11:50:08 +08:00
#pragma once
#include "expected.h"
#include <filesystem>
namespace vcpkg {namespace Files
{
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);
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
}}