func SyncPath(path string) {
	d, err := os.Open(path)
	if err != nil {
		logger.Panicf("FATAL: cannot open %q: %s", path, err)
	}
	if err := d.Sync(); err != nil {
		_ = d.Close()
		logger.Panicf("FATAL: cannot flush %q to storage: %s", path, err)
	}
	if err := d.Close(); err != nil {
		logger.Panicf("FATAL: cannot close %q: %s", path, err)
	}
}
// SyncPath syncs contents of the given path.
SyncPath syncs contents of the given path.
// SyncPath syncs contents of the given path .
func SyncPath(path string) {
	d, err := os.Open(path)
	if err != nil {
		logger.Panicf("FATAL: cannot open %q: %s", path, err)
	}
	if err := d.Sync(); err != nil {
		_ = d.Close()
		logger.Panicf("FATAL: cannot flush %q to storage: %s", path, err)
	}
	if err := d.Close(); err != nil {
		logger.Panicf("FATAL: cannot close %q: %s", path, err)
	}
}
func SyncPath ( path string ) { d , err := os . Open ( path ) if err != nil { logger . Panicf ( " " , path , err ) } if err := d . Sync ( ) ; err != nil { _ = d . Close ( ) logger . Panicf ( " " , path , err ) } if err := d . Close ( ) ; err != nil { logger . Panicf ( " " , path , err ) } }
SyncPath syncs contents of the given path.
SyncPath syncs contents of the given path .