Bug 383560

Summary: Error if trying to 'Backup current' file or folder with spaces in it's name
Product: [Applications] krusader Reporter: Alexander Mentyu <notuxius>
Component: generalAssignee: Krusader Bugs Distribution List <krusader-bugs-null>
Status: CONFIRMED ---    
Severity: minor CC: krusader-bugs-null, nikita+kde
Priority: LO Keywords: triaged
Version First Reported In: 2.6.0   
Target Milestone: ---   
Platform: Netrunner Rolling   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Alexander Mentyu 2017-08-15 15:20:47 UTC
Steps to reproduce:
1. Create/select file/folder with spaces.
2. Select Useractions -> System -> Backup current.

Actual result:
Appearance of 'The file or folder /path/to/filename\ with \spaces does not exist.' error window. Backup is not performing.
Comment 1 Alex Bikadorov 2017-08-20 19:29:05 UTC
Git commit 0141c0dbc6cea95a2f4ea18eba36ce822add261c by Alexander Bikadorov.
Committed on 20/08/2017 at 17:50.
Pushed by abikadorov into branch 'master'.

UserAction: half fix for "Backup current" user action if file/folder contains spaces

Source file correct now. New name proposol not because parser is buggy somewhere.

M  +1    -1    krusader/useraction_examples.xml

https://commits.kde.org/krusader/0141c0dbc6cea95a2f4ea18eba36ce822add261c
Comment 2 Nikita Melnichenko 2018-02-18 08:19:14 UTC
After Alex's fix (NOTE: you still have to edit your ~/.local/share/krusader/useractions.xml as the examples are copied there on the first Krusader run) it no longer shows the error message and the backup file is created, however suggested name in the dialog is not right. For example, for file "a b.txt" it suggests "a\ b.txt.old". Should be "a b.txt.old".