Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/fdp/registry/data_io.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ ghc::filesystem::path create_estimate(T &value,
ghc::filesystem::create_directories(output_filename_.parent_path());
}

toml_out_.open(output_filename_);
toml_out_.open(output_filename_.string());

if (!toml_out_) {
throw std::runtime_error("Failed to open TOML file for writing");
Expand Down
4 changes: 2 additions & 2 deletions src/objects/metadata.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ std::string calculate_hash_from_file(const ghc::filesystem::path &file_path) {
throw std::invalid_argument("File '" + file_path.string() + "' not found");
}

std::ifstream file_(file_path, std::ios_base::in | std::ios_base::binary);
std::ifstream file_(file_path.string(), std::ios_base::in | std::ios_base::binary);

const std::string hash_ = digestpp::sha1().absorb(file_).hexdigest();

Expand Down Expand Up @@ -78,7 +78,7 @@ bool file_exists( const std::string &Filename )
}

std::string read_token(const ghc::filesystem::path &token_path){
std::ifstream key_(token_path, std::ios::in);
std::ifstream key_(token_path.string(), std::ios::in);
std::string key_str_;
key_ >> key_str_;
key_.close();
Expand Down