feat: unify cloud workspace and release desktop v0.1.38
This commit is contained in:
@@ -433,14 +433,14 @@ class LocalStorageClient {
|
||||
* @param {string} filePath - 文件路径
|
||||
* @returns {ReadStream} 文件读取流
|
||||
*/
|
||||
createReadStream(filePath) {
|
||||
createReadStream(filePath, options = undefined) {
|
||||
const fullPath = this.getFullPath(filePath);
|
||||
|
||||
if (!fs.existsSync(fullPath)) {
|
||||
throw new Error(`文件不存在: ${filePath}`);
|
||||
}
|
||||
|
||||
return fs.createReadStream(fullPath);
|
||||
return fs.createReadStream(fullPath, options);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user