@forzalabs/remora 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -156,7 +156,8 @@ class LocalDestinationDriver {
|
|
|
156
156
|
this.move = (fromPath, toName) => __awaiter(this, void 0, void 0, function* () {
|
|
157
157
|
try {
|
|
158
158
|
const toFilePath = path_1.default.join(this._path, toName);
|
|
159
|
-
yield promises_1.default.
|
|
159
|
+
yield promises_1.default.copyFile(fromPath, toFilePath);
|
|
160
|
+
yield promises_1.default.unlink(fromPath);
|
|
160
161
|
return { bucket: '', key: toFilePath, res: true };
|
|
161
162
|
}
|
|
162
163
|
catch (error) {
|