MCPcopy Create free account
hub / github.com/apache/arrow / fs___FileSystemFromUri

Function fs___FileSystemFromUri

r/src/filesystem.cpp:260–268  ·  view source on GitHub ↗

[[arrow::export]]

Source from the content-addressed store, hash-verified

258
259// [[arrow::export]]
260cpp11::writable::list fs___FileSystemFromUri(const std::string& path) {
261 using cpp11::literals::operator""_nm;
262
263 std::string out_path;
264 auto io_context = MainRThread::GetInstance().CancellableIOContext();
265 return cpp11::writable::list({"fs"_nm = cpp11::to_r6(ValueOrStop(
266 fs::FileSystemFromUri(path, io_context, &out_path))),
267 "path"_nm = out_path});
268}
269
270// [[arrow::export]]
271void fs___CopyFiles(const std::shared_ptr<fs::FileSystem>& source_fs,

Callers 1

Calls 5

listFunction · 0.85
to_r6Function · 0.85
ValueOrStopFunction · 0.85
FileSystemFromUriFunction · 0.85
CancellableIOContextMethod · 0.80

Tested by

no test coverage detected