exodus-framework 2.0.99994 → 2.0.99996
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.
@@ -64,7 +64,7 @@ class FileLibraryService extends _service.default {
|
|
64
64
|
const md5 = await this.getMD5FromFile(itemPath);
|
65
65
|
if (md5 && !this.cache.has(md5)) {
|
66
66
|
//! este move o arquivo, não é preciso excluir o original
|
67
|
-
await this.saveAndRegisterFile(itemPath
|
67
|
+
await this.saveAndRegisterFile(itemPath);
|
68
68
|
} else {
|
69
69
|
await _fsExtra.default.unlink(itemPath);
|
70
70
|
}
|
@@ -112,7 +112,7 @@ class FileLibraryService extends _service.default {
|
|
112
112
|
const metaFilePath = _path.default.join(this.path, `${md5}.meta`);
|
113
113
|
let originalName = _path.default.basename(filePath);
|
114
114
|
if (temporary) {
|
115
|
-
const split = originalName.split('#');
|
115
|
+
const split = originalName.split('_#_');
|
116
116
|
originalName = split[split.length - 1];
|
117
117
|
}
|
118
118
|
await _fsExtra.default.move(filePath, newFilePath, {
|