Skip to main content
ReadStream.prototype.path - node__fs.d.ts - Node documentation
property ReadStream.prototype.path

Usage in Deno

```typescript import { ReadStream } from "node:node__fs.d.ts"; ```
The path to the file the stream is reading from as specified in the first argument to `fs.createReadStream()`. If `path` is passed as a string, then`readStream.path` will be a string. If `path` is passed as a `Buffer`, then`readStream.path` will be a `Buffer`. If `fd` is specified, then`readStream.path` will be `undefined`.

Type

string | Buffer