Skip to content

Commit

Permalink
explicit separator
Browse files Browse the repository at this point in the history
  • Loading branch information
samlhuillier committed Nov 2, 2024
1 parent 32f1a71 commit 8051147
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/File/NewDirectory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ const NewDirectoryComponent: React.FC<NewDirectoryComponentProps> = ({ isOpen, o

if (fullPath) {
const relativePath = await window.path.relative(vaultDirectory, fullPath)
// Add separator at the end of the path
const pathWithSeparator = relativePath ? await window.path.join(relativePath, '') : ''
const pathWithSeparator = relativePath ? `${relativePath}${await window.path.pathSep()}` : ''
setDirectoryRelativePath(pathWithSeparator)
}
}
Expand Down

0 comments on commit 8051147

Please sign in to comment.