Skip to content

Commit

Permalink
rm comments
Browse files Browse the repository at this point in the history
  • Loading branch information
samlhuillier committed Nov 2, 2024
1 parent 8051147 commit f3622eb
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/components/File/NewDirectory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,8 @@ const NewDirectoryComponent: React.FC<NewDirectoryComponentProps> = ({ isOpen, o
const validName = await handleValidName(directoryRelativePath)
if (!directoryRelativePath || errorMessage || !validName) return

// let directoryPath: string
const directoryPath = await window.electronStore.getVaultDirectoryForWindow()

// if (parentDirectoryPath) {
// directoryPath = parentDirectoryPath
// } else if (currentlyOpenFilePath && currentlyOpenFilePath !== '') {
// directoryPath = await window.path.dirname(currentlyOpenFilePath)
// } else {
// directoryPath = await window.electronStore.getVaultDirectoryForWindow()
// }

const finalPath = await window.path.join(directoryPath, directoryRelativePath)
window.fileSystem.createDirectory(finalPath)
posthog.capture('created_new_directory_from_new_directory_modal')
Expand Down

0 comments on commit f3622eb

Please sign in to comment.