Spaces:
Running
Running
Commit ·
d91db3f
1
Parent(s): 2cc7e7c
Add animations
Browse files- utils/AvatarRender.js +1 -1
utils/AvatarRender.js
CHANGED
|
@@ -247,7 +247,7 @@ export class AvatarRenderer {
|
|
| 247 |
if (abs === path.resolve(resultFile)) continue;
|
| 248 |
if (abs === path.resolve(manuscriptPath)) continue;
|
| 249 |
if (fs.existsSync(abs)) {
|
| 250 |
-
|
| 251 |
}
|
| 252 |
} catch (e) {
|
| 253 |
onLog && onLog(`Error while cleaning temp file ${f}: ${e}\n`);
|
|
|
|
| 247 |
if (abs === path.resolve(resultFile)) continue;
|
| 248 |
if (abs === path.resolve(manuscriptPath)) continue;
|
| 249 |
if (fs.existsSync(abs)) {
|
| 250 |
+
try { fs.unlinkSync(abs); onLog && onLog(`Deleted temp file: ${abs}\n`); } catch (e) { onLog && onLog(`Failed to delete temp file ${abs}: ${e}\n`); }
|
| 251 |
}
|
| 252 |
} catch (e) {
|
| 253 |
onLog && onLog(`Error while cleaning temp file ${f}: ${e}\n`);
|