MCPcopy Create free account
hub / github.com/denoland/std / statSync

Method statSync

fs/unstable_types.ts:383–383  ·  view source on GitHub ↗

* Synchronously returns a code FileInfo for the file. * * @example Usage * ```ts ignore * import { assert } from "@std/assert"; * import { openSync } from "@std/fs/unstable-open"; * using file = openSync("hello.txt"); * const fileInfo = file.statSync(); * assert(fileIn

()

Source from the content-addressed store, hash-verified

381 * ```
382 */
383 statSync(): FileInfo;
384 /**
385 * Flushes any pending data and metadata operations of the given file
386 * stream to disk.

Callers 15

createWalkEntrySyncFunction · 0.65
copyFileSyncFunction · 0.65
copyDirSyncFunction · 0.65
statSyncFunction · 0.65
empty_dir_test.tsFile · 0.65
copy_test.tsFile · 0.65
fnFunction · 0.65
ensure_dir_test.tsFile · 0.65

Implementers 1

NodeFsFilefs/_node_fs_file.ts

Calls

no outgoing calls

Tested by

no test coverage detected