| 1521 | } |
| 1522 | |
| 1523 | FileInfo 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 | |
| 1532 | FileInfo DirectoryFileInfoFromPath(std::string_view path) { |
| 1533 | return FileInfo{std::string{internal::RemoveTrailingSlash(path)}, FileType::Directory}; |
no test coverage detected