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

Function FileInfoFromPath

cpp/src/arrow/filesystem/azurefs.cc:1523–1530  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1521}
1522
1523FileInfo FileInfoFromPath(std::string_view container,
1524 const DataLake::Models::PathItem& path) {
1525 FileInfo info{internal::ConcatAbstractPath(container, path.Name),
1526 path.IsDirectory ? FileType::Directory : FileType::File};
1527 info.set_size(path.FileSize);
1528 info.set_mtime(std::chrono::system_clock::time_point{path.LastModified});
1529 return info;
1530}
1531
1532FileInfo DirectoryFileInfoFromPath(std::string_view path) {
1533 return FileInfo{std::string{internal::RemoveTrailingSlash(path)}, FileType::Directory};

Calls 1

ConcatAbstractPathFunction · 0.85

Tested by

no test coverage detected