mirror of
https://github.com/skilfoy/ARTEX-English.git
synced 2026-12-03 13:11:02 +00:00
The application tree is BaaRai/ARTEX v0.7.0 (22ae88af), imported as one commit because that history is not in this repository. This commit adds the cloud installer, a defender pack for the console and the known-bad image names, and a supply-chain check. The opt-in update banner points at this fork and stays off in the cloud compose file.
18 lines
296 B
Go
18 lines
296 B
Go
//go:build unix
|
|
|
|
package server
|
|
|
|
import (
|
|
"errors"
|
|
"os"
|
|
)
|
|
|
|
// syncDir flushes a directory, so that an entry just created or renamed in it
|
|
// survives a crash.
|
|
func syncDir(path string) error {
|
|
d, err := os.Open(path)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return errors.Join(d.Sync(), d.Close())
|
|
}
|