@tsparticles/cli 1.3.2 → 1.3.3
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.
|
@@ -16,6 +16,9 @@ async function getFolderStats(folderPath) {
|
|
|
16
16
|
totalFolders: 0,
|
|
17
17
|
totalSize: 0,
|
|
18
18
|
};
|
|
19
|
+
if (!(await fs_extra_1.default.pathExists(folderPath))) {
|
|
20
|
+
return stats;
|
|
21
|
+
}
|
|
19
22
|
const dir = await fs_extra_1.default.promises.opendir(folderPath);
|
|
20
23
|
for await (const dirent of dir) {
|
|
21
24
|
if (dirent.isDirectory()) {
|
package/package.json
CHANGED
|
@@ -18,6 +18,10 @@ async function getFolderStats(folderPath: string): Promise<IDistStats> {
|
|
|
18
18
|
totalSize: 0,
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
+
if (!(await fs.pathExists(folderPath))) {
|
|
22
|
+
return stats;
|
|
23
|
+
}
|
|
24
|
+
|
|
21
25
|
const dir = await fs.promises.opendir(folderPath);
|
|
22
26
|
|
|
23
27
|
for await (const dirent of dir) {
|