Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 767 Bytes

filesystem.rst

File metadata and controls

45 lines (30 loc) · 767 Bytes

Filesystem Path Conversion

Description

The functions described below are convenience functions to convert between a URL and a filesystem path.

Headers

#include <skyr/filesystem/path.hpp>

Example

#include <skyr/url.hpp>
#include <skyr/filesystem/path.hpp>
#include <iostream>

int main() {
  auto path = std::filesystem::path("/usr/bin/clang");
  auto url = skyr::filesystem::from_path(path).value();
  std::cout << url << std::endl;
}

API

Path

.. doxygenfunction:: skyr::v1::filesystem::from_path

.. doxygenfunction:: skyr::v1::filesystem::to_path

Error codes

.. doxygenenum:: skyr::v1::filesystem::path_errc