Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fix: renaming files from dialog #1134

Ilian Sapundshiev67486a775426
diff --git a/app/components/dialogs/RenameFileDialog.tsx b/app/components/dialogs/RenameFileDialog.tsx
index 253dd7d65..8668ce7dc 100644
--- a/app/components/dialogs/RenameFileDialog.tsx
+++ b/app/components/dialogs/RenameFileDialog.tsx
@@ -116,7 +116,7 @@ class RenameFileDialog extends React.Component<Props, State> {
PlatformIO.getDirSeparator()
);
const newFilePath =
- fileDirectory + PlatformIO.getDirSeparator + this.state.fileName;
+ fileDirectory + PlatformIO.getDirSeparator() + this.state.fileName;
this.props.renameFile(this.props.selectedFilePath, newFilePath);
this.props.onClose();
this.setState({ inputError: false, disableConfirmButton: true });