better commands

This commit is contained in:
2023-07-14 22:26:18 +02:00
parent f240c313a7
commit b0522a6871
17 changed files with 24 additions and 31 deletions

View File

@@ -137,7 +137,10 @@ void RepoFS::start(Repository *repo, std::string path) {
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!");
if (file.fileType == File::Type::Symlink) {
std::cerr << "Symlinks not supported yet!" << std::endl;
continue;
}
auto path = std::filesystem::u8path(file.name);
DirEntry *entry = &(root.children[std::to_string(a.id)]);
entry->isFakeDir = true;