m/market labResearch, with a record.
Source on GitHub ↗

file_utils.hpp

1#pragma once2#include <string>34namespace itch {5/** Reject two paths naming the same file, including aliases and canonical paths.6 * Empty paths are ignored, so callers may pass unused optional destinations.7 * @throws std::runtime_error if paths conflict; filesystem errors may also propagate.8 */9void reject_same_file(const std::string& a, const std::string& b);10} // namespace itch