mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-11-16 23:04:24 +08:00
fix(agent): make discovery enrollment compatible and idempotent (#53)
* fix(agent): make discovery enrollment compatible and idempotent * fix(agent): confirm enrollment persistence and document token aliases
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// Copyright 2026 Arctel.net
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package localfile
|
||||
|
||||
import "os"
|
||||
|
||||
// Windows does not support a portable directory fsync through os.File.Sync.
|
||||
// The file is flushed before replacement; persisting the directory entry is best effort.
|
||||
func syncDirectory(_ *os.File) error {
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user