ante-erp-cli 1.11.29 → 1.11.30
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.
- package/package.json +1 -1
- package/src/commands/restore.js +1 -1
package/package.json
CHANGED
package/src/commands/restore.js
CHANGED
|
@@ -411,7 +411,7 @@ export async function restore(backupFile, options = {}) {
|
|
|
411
411
|
*/
|
|
412
412
|
function getSizeSync(filePath) {
|
|
413
413
|
try {
|
|
414
|
-
const stats =
|
|
414
|
+
const stats = statSync(filePath);
|
|
415
415
|
const bytes = stats.size;
|
|
416
416
|
const sizes = ['B', 'KB', 'MB', 'GB'];
|
|
417
417
|
if (bytes === 0) return '0 B';
|