//go:build windows

package dispatcher

import (
	"fmt"
	"os"
)

func syncSessionResumeStateDir(dir string) error {
	info, err := os.Stat(dir)
	if err != nil {
		return err
	}
	if !info.IsDir() {
		return fmt.Errorf("%s is not a directory", dir)
	}
	// Windows does not support fsync on a directory opened by os.Open.
	// File contents are flushed before rename; validating the directory here
	// preserves missing-path and wrong-type failures without rejecting every
	// durable work directory on Windows.
	return nil
}
