Refactor: Remove .gitkeep creation in createFolder

This commit is contained in:
2026-01-20 13:22:21 -08:00
parent 73522e230c
commit 4306cd6307

View File

@@ -222,9 +222,11 @@
const name = prompt('Folder name:', 'new-folder');
if (name) {
const newPath = this.currentPath ? `${this.currentPath}/${name}` : name;
const keepPath = `${newPath}/.gitkeep`;
if (this.fileTree.some(i => i.path === newPath)) {
alert('Folder already exists, Meowster.');
return;
}
this.fileTree.push({ path: newPath, type: 'tree', sha: null });
this.trackChange('add', keepPath, null, null, 'blob');
}
this.contextMenu.show = false;
},