]> ruderich.org/simon Gitweb - nsscash/nsscash.git/blobdiff - file.go
.github: update upstream actions to latest version
[nsscash/nsscash.git] / file.go
diff --git a/file.go b/file.go
index f382ba4ef8bdcae5100d568cdd09009fef0b33b4..3884bba8b6ae3c4f0e6d86f26d796fd5fcac0952 100644 (file)
--- a/file.go
+++ b/file.go
@@ -1,6 +1,6 @@
 // Download and write files atomically to the file system
 
-// 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
@@ -198,5 +198,9 @@ func deployFile(file *File) error {
        if err != nil {
                return err
        }
-       return f.CloseAtomicallyReplace()
+       err = f.CloseAtomicallyReplace()
+       if err != nil {
+               return err
+       }
+       return syncPath(filepath.Dir(file.Path))
 }