MCPcopy Create free account
hub / github.com/di-sukharev/opencommit / fileFromPathSync

Function fileFromPathSync

out/cli.cjs:14790–14793  ·  view source on GitHub ↗
(path5, filenameOrOptions, options = {})

Source from the content-addressed store, hash-verified

14788 });
14789}
14790function fileFromPathSync(path5, filenameOrOptions, options = {}) {
14791 const stats = (0, import_fs2.statSync)(path5);
14792 return createFileFromPath(path5, stats, filenameOrOptions, options);
14793}
14794async function fileFromPath2(path5, filenameOrOptions, options) {
14795 const stats = await import_fs2.promises.stat(path5);
14796 return createFileFromPath(path5, stats, filenameOrOptions, options);

Callers

nothing calls this directly

Calls 1

createFileFromPathFunction · 0.85

Tested by

no test coverage detected