switch back to boost::filesystem to avoid the requirement of c++17

This commit is contained in:
Chunting Gu
2020-09-07 19:01:31 +08:00
parent e7f88da2b2
commit 84476f75f7
31 changed files with 175 additions and 192 deletions
+4 -3
View File
@@ -2,11 +2,12 @@
#define WEBCC_COMMON_H_
#include <cassert>
#include <filesystem>
#include <string>
#include <utility>
#include <vector>
#include "boost/filesystem/path.hpp"
#include "webcc/globals.h"
namespace webcc {
@@ -158,7 +159,7 @@ public:
// The file name will be extracted from path.
// The media type, if not provided, will be inferred from file extension.
static FormPartPtr NewFile(const std::string& name,
const std::filesystem::path& path,
const boost::filesystem::path& path,
const std::string& media_type = "");
// API: SERVER
@@ -229,7 +230,7 @@ private:
std::string name_;
// The path of the file to post.
std::filesystem::path path_;
boost::filesystem::path path_;
// The original local file name.
// E.g., "baby.jpg".