MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ resolve_absolute()

std::expected< std::filesystem::path, AcquireFailure > MayaFlux::Platform::detail::resolve_absolute ( const std::filesystem::path & path)
inline

Definition at line 138 of file Acquisition.hpp.

139 {
140 if (path.empty()) {
141 return std::unexpected(make_failure(AcquireFailure::Reason::EmptyRequest, ""));
142 }
143 std::error_code ec;
144 std::filesystem::path absolute = std::filesystem::absolute(path, ec);
145 if (ec) {
146 return std::unexpected(make_failure(AcquireFailure::Reason::Missing, path.string(), { path }));
147 }
148 return absolute;
149 }
AcquireFailure make_failure(AcquireFailure::Reason reason, std::string request, std::vector< std::filesystem::path > tried={})

References MayaFlux::Platform::AcquireFailure::EmptyRequest, make_failure(), and MayaFlux::Platform::AcquireFailure::Missing.

Referenced by acquire_from_directories(), acquire_from_path(), acquire_from_prefix(), and resolve_socket_path().

Here is the call graph for this function:
Here is the caller graph for this function: