# HG changeset patch # User Robin Stumm # Date 1610837051 -3600 # Sat Jan 16 23:44:11 2021 +0100 # Node ID baf791d2f90f56eb56f502936e20badbccfa8ad4 # Parent 6da99d1a0fb001026ad8acdb8a6c10b42edeb3dd do not skip symlinks diff --git a/lib.zig b/lib.zig --- a/lib.zig +++ b/lib.zig @@ -33,7 +33,10 @@ var i = try walker.next(); while (i != null) : (i = try walker.next()) { const entry = i.?; - if (entry.kind != .File) continue; + switch (entry.kind) { + .File, .SymLink => {}, + else => continue, + } const path = try mem.dupe(allocator, u8, entry.path[options.dir.len + "/".len ..]);