We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe386c4 commit 89a1dc8Copy full SHA for 89a1dc8
plugins/local-storage/src/local-fs.js
@@ -172,12 +172,12 @@ class LocalFS implements ILocalPackageManager {
172
173
const pathName: string = this._getStorage(name);
174
175
- fs.exists(pathName, function(exists) {
+ fs.exists(pathName, (exists) => {
176
if (exists) {
177
return uploadStream.emit('error', fSError(fileExist));
178
}
179
180
- const temporalName = `${name}.tmp-${String(Math.random()).replace(/^0\./, '')}`;
+ const temporalName = path.join(this.path, `${name}.tmp-${String(Math.random()).replace(/^0\./, '')}`);
181
const file = fs.createWriteStream(temporalName);
182
let opened = false;
183
uploadStream.pipe(file);
0 commit comments