Z ZPI 文档 v0.3.8
介绍页

源码

packages/coding-agent/src/core/fs.ts

typescript13 行查看原文
import { closeSync, fsyncSync, openSync } from "node:fs";

export function syncDirectory(path: string): void {
  // Windows does not expose directory fsync through Node's file API.
  if (process.platform === "win32") return;
  const fd = openSync(path, "r");
  try {
    fsyncSync(fd);
  } finally {
    closeSync(fd);
  }
}