From 9b00001687a3bdb8ebad07b5ba55f910d2df6b78 Mon Sep 17 00:00:00 2001 From: liuyuekeng Date: Fri, 15 Mar 2019 11:59:01 +0800 Subject: [PATCH] add field "path" to read stream --- lib/MemoryFileSystem.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/MemoryFileSystem.js b/lib/MemoryFileSystem.js index 1d9d3d2..0420580 100644 --- a/lib/MemoryFileSystem.js +++ b/lib/MemoryFileSystem.js @@ -247,6 +247,7 @@ class MemoryFileSystem { this.push(data.slice(options.start, options.end)); this.push(null); }; + stream.path = path; return stream; }