From 4ef4b734a5cf79f53e6c298246b7d98e516bf572 Mon Sep 17 00:00:00 2001 From: valoq Date: Sun, 14 Jun 2026 21:13:29 +0200 Subject: [PATCH] fix: avoid overwriting broken symlinks on move (#2619) --- nav.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nav.go b/nav.go index c140c837..397aab35 100644 --- a/nav.go +++ b/nav.go @@ -1424,7 +1424,7 @@ func (nav *nav) moveAsync(app *app, srcs []string, dstDir string) { file := filepath.Base(src) dst := filepath.Join(dstDir, file) - if dstStat, err := os.Stat(dst); err == nil { + if dstStat, err := os.Lstat(dst); err == nil { if os.SameFile(srcStat, dstStat) { sendErr("rename %s %s: source and destination are the same file", src, dst) continue