~mrms/osum

82b8d4bb6780f2ffebfe255a0f64f459d22d9726 — Marek Ma┼íkarinec 6 months ago ff26d47
Fix link skip expression
1 files changed, 7 insertions(+), 4 deletions(-)

M os.um
M os.um => os.um +7 -4
@@ 137,10 137,13 @@ fn walk*(dir: str, cb: fn(file: str), args: WalkArgs = {}): Errno {
                fullpath := filepath.join(dir, f)

                if isdir(fullpath) {
                        walk(fullpath, cb, args)
                        if !args.excludeDirs && !(args.skipLinks && islink(fullpath)) {
                                cb(fullpath)
                        }
			if !(args.skipLinks && islink(fullpath)) {
				walk(fullpath, cb, args)
			}

			if args.excludeDirs {
				cb(fullpath)
			}
                } else {
                        cb(fullpath)
                }