// Main file for nsscash
-// Copyright (C) 2019-2020 Simon Ruderich
+// Copyright (C) 2019-2021 Simon Ruderich
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
return err
}
- return f.CloseAtomicallyReplace()
+ err = f.CloseAtomicallyReplace()
+ if err != nil {
+ return err
+ }
+ return syncPath(filepath.Dir(dstPath))
}