Home
last modified time | relevance | path

Searched +refs:ReadStream +refs:open (Results 1 – 25 of 28) sorted by relevance

12

/third_party/node/test/parallel/
Dtest-fs-stream-construct-compat-graceful-fs.js14 function ReadStream(...args) { class
15 fs.ReadStream.call(this, ...args);
17 Object.setPrototypeOf(ReadStream.prototype, fs.ReadStream.prototype);
18 Object.setPrototypeOf(ReadStream, fs.ReadStream);
20 ReadStream.prototype.open = common.mustCall(function ReadStream$open() { method in ReadStream
22 fs.open(that.path, that.flags, that.mode, (err, fd) => {
36 const r = new ReadStream(fixtures.path('x.txt'))
52 WriteStream.prototype.open = common.mustCall(function WriteStream$open() { method in WriteStream
54 fs.open(that.path, that.flags, that.mode, function(err, fd) {
Dtest-fs-stream-construct-compat-old-node.js14 function ReadStream(...args) { class
15 fs.ReadStream.call(this, ...args);
17 Object.setPrototypeOf(ReadStream.prototype, fs.ReadStream.prototype);
18 Object.setPrototypeOf(ReadStream, fs.ReadStream);
20 ReadStream.prototype.open = common.mustCall(function() { method in ReadStream
21 fs.open(this.path, this.flags, this.mode, (er, fd) => {
38 const r = new ReadStream(fixtures.path('x.txt'))
64 WriteStream.prototype.open = common.mustCall(function() { method in WriteStream
65 fs.open(this.path, this.flags, this.mode, (er, fd) => {
Dtest-fs-stream-construct-compat-error-read.js13 function ReadStream(...args) { class
14 fs.ReadStream.call(this, ...args);
16 Object.setPrototypeOf(ReadStream.prototype, fs.ReadStream.prototype);
17 Object.setPrototypeOf(ReadStream, fs.ReadStream);
19 ReadStream.prototype.open = common.mustCall(function ReadStream$open() { method in ReadStream
21 fs.open(that.path, that.flags, that.mode, (err, fd) => {
26 const r = new ReadStream('/doesnotexist', { emitClose: true })
Dtest-fs-read-stream-patch-open.js11 s.open();
15 fs.ReadStream.prototype.open = common.mustCall(); class in fs
/third_party/node/deps/npm/node_modules/graceful-fs/
Dgraceful-fs.js236 ReadStream = legStreams.ReadStream
240 var fs$ReadStream = fs.ReadStream
242 ReadStream.prototype = Object.create(fs$ReadStream.prototype) class
243 ReadStream.prototype.open = ReadStream$open method in ReadStream
249 WriteStream.prototype.open = WriteStream$open method in WriteStream
254 return ReadStream
257 ReadStream = val
274 var FileReadStream = ReadStream
297 function ReadStream (path, options) {
298 if (this instanceof ReadStream)
[all …]
Dlegacy-streams.js7 ReadStream: ReadStream,
11 function ReadStream (path, options) { class
12 if (!(this instanceof ReadStream)) return new ReadStream(path, options);
62 fs.open(this.path, this.flags, this.mode, function (err, fd) {
113 this._open = fs.open;
/third_party/node/lib/internal/fs/
Dstreams.js54 if (stream.open !== openWriteFs && stream.open !== openReadFs) {
69 stream.open();
71 stream[kFs].open(stream.path, stream.flags, stream.mode, (er, fd) => {
87 open: (path, flags, mode, cb) => {
150 function ReadStream(path, options) { class
151 if (!(this instanceof ReadStream))
152 return new ReadStream(path, options);
166 validateFunction(this[kFs].open, 'options.fs.open');
216 ObjectSetPrototypeOf(ReadStream.prototype, Readable.prototype);
217 ObjectSetPrototypeOf(ReadStream, Readable);
[all …]
Dpromises.js339 const { ReadStream } = lazyFsStreams();
340 return new ReadStream(undefined, { ...options, fd: this });
585 async function open(path, flags, mode) { function
716 const fd = await open(path, 'r+');
922 const fd = await open(path, O_WRONLY | O_SYMLINK);
1000 const fd = await open(path, flag, options.mode);
1025 const fd = await open(path, flag, 0o666);
1034 open, property
/third_party/node/deps/npm/node_modules/fs-minipass/lib/
Dindex.js37 class ReadStream extends Minipass { class
83 fs.open(this[_path], 'r', (er, fd) => this[_onopen](er, fd))
178 class ReadStreamSync extends ReadStream {
278 fs.open(this[_path], this[_flags], this[_mode],
439 exports.ReadStream = ReadStream
/third_party/node/deps/npm/node_modules/tar/node_modules/fs-minipass/
Dindex.js51 class ReadStream extends MiniPass { class
90 fs.open(this[_path], 'r', (er, fd) => this[_onopen](er, fd))
180 class ReadStreamSync extends ReadStream {
271 fs.open(this[_path], this[_flags], this[_mode],
418 exports.ReadStream = ReadStream
/third_party/node/lib/
Dfs.js159 let ReadStream; variable
416 binding.open(pathModule.toNamespacedPath(path),
563 function open(path, flags, mode, callback) { function
581 binding.open(pathModule.toNamespacedPath(path),
600 const result = binding.open(pathModule.toNamespacedPath(path),
1067 fs.open(path, 'r+', (er, fd) => {
1927 fs.open(path, O_WRONLY | O_SYMLINK, (err, fd) => {
2288 fs.open(path, flag, options.mode, (openErr, fd) => {
3011 if (!ReadStream) {
3012 ({ ReadStream, WriteStream } = require('internal/fs/streams'));
[all …]
/third_party/node/doc/api/
Dfs.md158 Instances of the {FileHandle} object are created by the `fsPromises.open()`
202 to with [`fsPromises.open()`][]. Therefore, this is equivalent to
240 import { open } from 'node:fs/promises';
244 filehandle = await open('thefile.txt', 'r');
263 * Returns: {fs.ReadStream}
285 import { open } from 'node:fs/promises';
287 const fd = await open('/dev/input/event0');
311 import { open } from 'node:fs/promises';
313 const fd = await open('sample.txt');
333 replacing it may require the `flags` `open` option to be set to `r+` rather than
[all …]
Ddeprecations.md2608 ### DEP0135: `WriteStream.open()` and `ReadStream.open()` are internal
2619 [`WriteStream.open()`][] and [`ReadStream.open()`][] are undocumented internal
2670 filehandle = await fsPromises.open('thefile.txt', 'r');
3342 [`ReadStream.open()`]: fs.md#class-fsreadstream
3346 [`WriteStream.open()`]: fs.md#class-fswritestream
Dstream.md1451 option can be passed as `false`, causing the destination stream to remain open:
2572 This can be changed manually to change the half-open behavior of an existing
3604 fs.open(this.filename, (err, fd) => {
3950 class ReadStream extends Readable {
3957 fs.open(this.filename, (err, fd) => {
/third_party/node/doc/changelogs/
DCHANGELOG_ARCHIVE.md796 * fs: make pool size coincide with ReadStream bufferSize (Shigeki Ohtsu)
810 * fs: make 'end' work with ReadStream without 'start' (Ben Noordhuis)
1078 * fs: fix WriteStream/ReadStream fd leaks (Ben Noordhuis)
1259 * fs: fix ReadStream / WriteStream missing callback (Gil Pedersen)
1501 * fs: add sync open flags 'rs' and 'rs+' (Kevin Bowman)
1535 * fs.WriteStream: Handle modifications to fs.open (isaacs)
1675 * fs: add O\_EXCL support, exclusive open file (Ben Noordhuis)
1750 * [#3258](https://github.com/joyent/node/issues/3258): fs.ReadStream.pause() emits duplicate data e…
1770 * fs: fix ReadStream / WriteStream double close bug (Ben Noordhuis)
1897 * fs: fix ReadStream failure to read from existing fd (Christopher Jeffrey)
[all …]
DCHANGELOG_V9.md98 …* Emit 'ready' event for `ReadStream` and `WriteStream` (Sameer Srivastava) [#19408](https://githu…
165 …s/node/commit/94b28aaf07)] - **test**: use createReadStream instead of ReadStream (Daniel Bevenius…
223 …nections to localhost or to hosts on the local network, potentially to an open inspector port as a…
277 …om/nodejs/node/commit/7e9b7a5683)] - **doc**: add missing metadata for fs.open (Tobias Nießen) [#1…
427 …com/nodejs/node/commit/5b12d3a58e)] - **net**: do not inherit the no-half-open enforcer (Luigi Pin…
447 …ps://github.com/nodejs/node/commit/9c0c0e68ac)] - **stream**: add no-half-open enforcer only if ne…
726 …* add methods to open/close callback scope (Michael Dawson) [#18089](https://github.com/nodejs/nod…
850 …s/node/commit/4bf8b6a62d)] - **(SEMVER-MINOR)** **n-api**: add methods to open/close callback scop…
1058 …ub.com/nodejs/node/commit/778d57c2c2)] - **fs**: fix options.end of fs.ReadStream() (陈刚) [#18121](…
1347 * \[[`06862f0c32`](https://github.com/nodejs/node/commit/06862f0c32)] - **test**: do not open fixtu…
[all …]
DCHANGELOG_V5.md497 …* Currently the only option is `keepOpen`, which keeps the underlying socket open after the messag…
970 …/nodejs/node/commit/310530b7ec)] - **doc**: add path property to Write/ReadStream in fs.markdown (…
1328 …github.com/nodejs/node/commit/77251d99de)] - **doc**: numeric flags to fs.open (Carl Lei) [#3641](…
1378 …ithub.com/nodejs/node/commit/f9fe0aee53)] - **test**: numeric flags to fs.open (Carl Lei) [#3641](…
1549 …hub.com/nodejs/node/commit/5073da0481)] - **repl**: don't crash if cannot open history file (Evan …
1612 …nding known issue where unrefed timers would perviously hold `beforeExit` open (Fedor Indutny) [#3…
DCHANGELOG_V6.md128 …pAliveTimeout` to prevent keep-alive HTTP and HTTPS connections remaining open and inactive for an…
361 …://github.com/nodejs/node/commit/a8dec487f7)] - **n-api**: add methods to open/close callback scop…
540 …nections to localhost or to hosts on the local network, potentially to an open inspector port as a…
584 …ub.com/nodejs/node/commit/df038ad90f)] - **fs**: fix options.end of fs.ReadStream() (陈刚) [#18121](…
789 ….com/nodejs/node/commit/e8368a12d2)] - **doc**: improve punctuation in fs.open() text (Rich Trott)…
1848 …://github.com/nodejs/node/commit/6020e720b5)] - **test**: improve test-fs-open-flags (Vinícius do …
2768 …b.com/nodejs/node/commit/8792fb1788)] - **test**: improve code in test-fs-open.js (Adrian Estrada)…
3937 * **fs**: `fs.ReadStream` now exposes the number of bytes it has read so far. (Linus Unnebäck) [#79…
4030 …node/commit/0bb9d21f0e)] - **(SEMVER-MINOR)** **fs**: add bytesRead to ReadStream (Linus Unnebäck)…
4664 * \[[`51d1960955`](https://github.com/nodejs/node/commit/51d1960955)] - **doc**: undocument fs.open
[all …]
DCHANGELOG_V4.md1397 …m/nodejs/node/commit/2244a3c250)] - **doc**: adds 'close' events to fs.ReadStream and fs.WriteStre…
2421 …/nodejs/node/commit/75b0ea85bd)] - **doc**: add path property to Write/ReadStream in fs.markdown (…
2802 …github.com/nodejs/node/commit/4c382e7aaa)] - **doc**: numeric flags to fs.open (Carl Lei) [#3641](…
2874 …hub.com/nodejs/node/commit/ff02b295fc)] - **repl**: don't crash if cannot open history file (Evan …
2904 …ithub.com/nodejs/node/commit/9a6c9faafb)] - **test**: numeric flags to fs.open (Carl Lei) [#3641](…
3356 * \[[`69e7b875a2`](https://github.com/nodejs/node/commit/69e7b875a2)] - **tools**: open `test.tap` …
DCHANGELOG_V13.md1271 …ub.com/nodejs/node/commit/2313b9e33b)] - **doc**: update mode type for fs open() functions (cjihri…
2036 …://github.com/nodejs/node/commit/0d12e9cc29)] - **test**: improve test-fs-open (Artem Maksimov) [#…
2242 * Calling the `open()` method on a `ReadStream` or `WriteStream` now emits a
2306 …df60)] - **(SEMVER-MAJOR)** **fs**: add runtime deprecate for file stream open() (Robert Nagy) [#2…
DCHANGELOG_V8.md355 …s/node/commit/3ca10faf00)] - **test**: use createReadStream instead of ReadStream (Daniel Bevenius…
684 …om/nodejs/node/commit/f57c53c811)] - **doc**: add missing metadata for fs.open (Tobias Nießen) [#1…
1101 …://github.com/nodejs/node/commit/927fc0b19f)] - **n-api**: add methods to open/close callback scop…
1214 …nections to localhost or to hosts on the local network, potentially to an open inspector port as a…
1440 …ub.com/nodejs/node/commit/b343cb60e1)] - **fs**: fix options.end of fs.ReadStream() (陈刚) [#18121](…
1525 * \[[`a5ada418c4`](https://github.com/nodejs/node/commit/a5ada418c4)] - **test**: do not open fixtu…
1526 * \[[`95cbf081e7`](https://github.com/nodejs/node/commit/95cbf081e7)] - **test**: do not open fixtu…
1623 ….com/nodejs/node/commit/cfaba6b0ba)] - **doc**: improve punctuation in fs.open() text (Rich Trott)…
2517 * add support O\_DSYNC file open constant
DCHANGELOG_V11.md363 * \[[`14c3af7f3e`](https://github.com/nodejs/node/commit/14c3af7f3e)] - **src**: only open HandleSc…
1969 …/nodejs/node/commit/cc133c4432)] - **test**: use ES2017 syntax in test-fs-open-\* (jy95) [#23031](…
2211 * \[[`c68b0ae46e`](https://github.com/nodejs/node/commit/c68b0ae46e)] - **doc**: update fs.open() c…
2468 ….com/nodejs/node/commit/b4b101fed6)] - **(SEMVER-MINOR)** **fs**: default open/openSync flags argu…
2531 …e and begin migrating. If there are no supported API alternatives, please open an issue in the Nod…
2608 …9374fd25b)] - **(SEMVER-MAJOR)** **fs**: improve argument handling for ReadStream (Ujjwal Sharma) …
DCHANGELOG_V16.md982 …dejs/node/commit/13d6a56c7d)] - **test**: improve test coverage of `fs.ReadStream` with `FileHandl…
1146 …ub.com/nodejs/node/commit/59fff925be)] - **(SEMVER-MINOR)** **fs**: make `open` and `close` stream…
1196 …ub.com/nodejs/node/commit/59fff925be)] - **(SEMVER-MINOR)** **fs**: make `open` and `close` stream…
1414 …ithub.com/nodejs/node/commit/f98311a7c8)] - **tools**: update workflow to open a pull request (Ric…
DCHANGELOG_V17.md1571 …ejs/node/commit/3e774a0500)] - **doc**: fix history for `fs.WriteStream` `open` event (Antoine du …
1612 …dejs/node/commit/1d84e916d6)] - **test**: improve test coverage of `fs.ReadStream` with `FileHandl…
/third_party/node/deps/corepack/dist/lib/
Dcorepack.cjs9312 fs7.open(
9354 fs7.open(path8, constants.O_SYMLINK, function(er, fd) {
9502 ReadStream,
9505 function ReadStream(path8, options) {
9506 if (!(this instanceof ReadStream))
9507 return new ReadStream(path8, options);
9545 fs6.open(this.path, this.flags, this.mode, function(err, fd) {
9552 self2.emit("open", fd);
9585 this._open = fs6.open;
9816 ReadStream = legStreams.ReadStream;
[all …]

12