git-ripper 1.4.9 → 1.4.10
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/resumeManager.js +3 -0
package/package.json
CHANGED
package/src/resumeManager.js
CHANGED
|
@@ -143,6 +143,9 @@ export class ResumeManager {
|
|
|
143
143
|
if (fs.existsSync(checkpointFile)) {
|
|
144
144
|
try {
|
|
145
145
|
fs.unlinkSync(checkpointFile);
|
|
146
|
+
if (fs.readdirSync(this.checkpointDir).length === 0) {
|
|
147
|
+
fs.rmdirSync(this.checkpointDir);
|
|
148
|
+
}
|
|
146
149
|
} catch (error) {
|
|
147
150
|
console.error(`Failed to cleanup checkpoint: ${error.message}`);
|
|
148
151
|
}
|