-
-
Notifications
You must be signed in to change notification settings - Fork 33.6k
Closed
Labels
fsIssues and PRs related to the fs subsystem / file system.Issues and PRs related to the fs subsystem / file system.
Description
- Version: v6.13.1
- Platform: Linux 3.13.0-142-generic doc: util: document --trace-deprecation #191-Ubuntu SMP Fri Feb 2 12:14:37 UTC 2018 i686 i686 i686 GNU/Linux
- Subsystem: fs
It believe commit 82bdf8f (fs: fix options.end of fs.ReadStream()) broke my code for creating a read stream. It looks to me like this.start is now forced to the value 0 whereas previously it was allowed to be undefined. I'm guessing since it is 0 it now forces a seek operation which breaks my use case.
In v6.13.1, this code:
var fs = require('fs');
var reader = fs.createReadStream('/dev/ttyS0');results in this error:
Error: ESPIPE: invalid seek, read
at Error (native)
The above code in v6.13.0 does not create that error.
In v6.13.0, this code:
var fs = require('fs');
var reader = fs.createReadStream('/dev/ttyS0', { start : 0 });results in this error:
Error: ESPIPE: invalid seek, read
at Error (native)
rgcoyot3, DusanBrejka and sffc
Metadata
Metadata
Assignees
Labels
fsIssues and PRs related to the fs subsystem / file system.Issues and PRs related to the fs subsystem / file system.