refactor
This commit is contained in:
parent
05d5bd9fe5
commit
a00e77d554
@ -23,7 +23,9 @@
|
||||
|
||||
#include "drives/fuse/fuse_drive_base.hpp"
|
||||
|
||||
#include "platform/platform.hpp"
|
||||
#include "providers/i_provider.hpp"
|
||||
#include "utils/common.hpp"
|
||||
|
||||
namespace repertory {
|
||||
auto fuse_drive_base::access_impl(std::string api_path, int mask) -> api_error {
|
||||
|
@ -25,6 +25,7 @@
|
||||
#include "events/event_system.hpp"
|
||||
#include "events/events.hpp"
|
||||
#include "file_manager/i_file_manager.hpp"
|
||||
#include "platform/platform.hpp"
|
||||
#include "utils/file_utils.hpp"
|
||||
#include "utils/path.hpp"
|
||||
#include "utils/polling.hpp"
|
||||
|
@ -21,7 +21,6 @@
|
||||
*/
|
||||
#include "test_common.hpp"
|
||||
|
||||
#include "drives/winfsp/i_winfsp_drive.hpp"
|
||||
#include "drives/winfsp/remotewinfsp/remote_client.hpp"
|
||||
#include "events/consumers/console_consumer.hpp"
|
||||
#if defined(_WIN32)
|
||||
@ -31,9 +30,9 @@
|
||||
#include "drives/fuse/remotefuse/remote_server.hpp"
|
||||
#include "mocks/mock_fuse_drive.hpp"
|
||||
#endif
|
||||
#include "platform/platform.hpp"
|
||||
#include "types/repertory.hpp"
|
||||
#include "utils/time.hpp"
|
||||
#include "utils/utils.hpp"
|
||||
#include "utils/common.hpp"
|
||||
|
||||
using namespace repertory;
|
||||
using namespace repertory::remote_winfsp;
|
||||
|
@ -21,8 +21,9 @@
|
||||
*/
|
||||
#include "test_common.hpp"
|
||||
|
||||
#include "platform/platform.hpp"
|
||||
#include "utils/common.hpp"
|
||||
#include "utils/file_utils.hpp"
|
||||
#include "utils/path.hpp"
|
||||
#include "utils/string.hpp"
|
||||
#include "utils/utils.hpp"
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
*/
|
||||
#include "test_common.hpp"
|
||||
|
||||
#include "utils/utils.hpp"
|
||||
#include "utils/common.hpp"
|
||||
|
||||
namespace repertory {
|
||||
TEST(version, equal) {
|
||||
|
4
support/3rd_party/src/utils/file.cpp
vendored
4
support/3rd_party/src/utils/file.cpp
vendored
@ -254,6 +254,10 @@ auto read_json_file(std::string_view path, nlohmann::json &data) -> bool {
|
||||
|
||||
try {
|
||||
auto abs_path = utils::path::absolute(path);
|
||||
if (not is_file(abs_path)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
std::ifstream file_stream{
|
||||
abs_path.c_str(),
|
||||
std::ios_base::binary | std::ios::in,
|
||||
|
Loading…
x
Reference in New Issue
Block a user