X-Git-Url: https://ruderich.org/simon/gitweb/?p=nsscash%2Fnsscash.git;a=blobdiff_plain;f=main.go;fp=main.go;h=7a7d8b0da8e6855b8545c609f6169184819db7ae;hp=9b127529178a9be4eb76d29e9f9ce6d0e2abc6d3;hb=f00fb4706c4c2459d528fb5f8ad0fa112b00bdd0;hpb=278c50be3d8a8c433aa862d602492112b9f26a67 diff --git a/main.go b/main.go index 9b12752..7a7d8b0 100644 --- a/main.go +++ b/main.go @@ -151,5 +151,9 @@ func mainConvert(typ, srcPath, dstPath string) error { return err } - return f.CloseAtomicallyReplace() + err = f.CloseAtomicallyReplace() + if err != nil { + return err + } + return syncPath(filepath.Dir(dstPath)) }