temporarily disable symlinks in the backup test

This commit is contained in:
2023-06-09 08:30:58 +02:00
parent 7aa3273aaf
commit f240c313a7
2 changed files with 63 additions and 33 deletions

View File

@@ -136,6 +136,8 @@ void RepoFS::start(Repository *repo, std::string path) {
auto a = Serialize::deserialize<Archive>(repo->getObject(r.second));
for (auto const &f: a.files) {
auto file = Serialize::deserialize<File>(repo->getObject(f));
// TODO: symlinks
if (file.fileType == File::Type::Symlink) throw Exception("Symlinks not supported yet!");
auto path = std::filesystem::u8path(file.name);
DirEntry *entry = &(root.children[std::to_string(a.id)]);
entry->isFakeDir = true;