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

Method stat

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

* Resolves to a code FileInfo for the file. * * @example Usage * ```ts ignore * import { assert } from "@std/assert"; * import { open } from "@std/fs/unstable-open"; * using file = await open("hello.txt"); * const fileInfo = await file.stat(); * assert(fileInfo.isFile)

()

Source from the content-addressed store, hash-verified

368 * ```
369 */
370 stat(): Promise<FileInfo>;
371 /**
372 * Synchronously returns a {@linkcode FileInfo} for the file.
373 *

Callers 15

serveFileFunction · 0.65
serveDirIndexFunction · 0.65
createServeDirResponseFunction · 0.65
copy_test.tsFile · 0.65
tar_stream_test.tsFile · 0.65
createReadableFunction · 0.65
createWalkEntryFunction · 0.65
copyFileFunction · 0.65
copyDirFunction · 0.65

Implementers 1

NodeFsFilefs/_node_fs_file.ts

Calls

no outgoing calls

Tested by

no test coverage detected