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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "git-ripper",
3
- "version": "1.4.9",
3
+ "version": "1.4.10",
4
4
  "description": "CLI tool that lets you download specific folders from GitHub repositories without cloning the entire repo.",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -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
  }