2026-08-10 01:58:52 +00:00
|
|
|
//go:build !linux && !darwin && !windows
|
|
|
|
|
|
|
|
|
|
package fileops
|
|
|
|
|
|
2026-08-10 17:44:38 +00:00
|
|
|
import (
|
|
|
|
|
"fmt"
|
2026-08-10 17:59:29 +00:00
|
|
|
"os"
|
2026-08-10 17:44:38 +00:00
|
|
|
"runtime"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func syncDirectory(path string) error {
|
|
|
|
|
return fmt.Errorf("%w for %q on %s", ErrDirectorySyncUnsupported, path, runtime.GOOS)
|
2026-08-10 01:58:52 +00:00
|
|
|
}
|
2026-08-10 17:59:29 +00:00
|
|
|
|
|
|
|
|
func syncDirectoryFile(_ *os.File, path string) error {
|
|
|
|
|
return syncDirectory(path)
|
|
|
|
|
}
|