Bug 383560 - Error if trying to 'Backup current' file or folder with spaces in it's name
Summary: Error if trying to 'Backup current' file or folder with spaces in it's name
Status: CONFIRMED
Alias: None
Product: krusader
Classification: Applications
Component: general (show other bugs)
Version: 2.6.0
Platform: Netrunner Rolling Linux
: LO minor
Target Milestone: ---
Assignee: Krusader Bugs Distribution List
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2017-08-15 15:20 UTC by Alexander Mentyu
Modified: 2018-05-21 05:15 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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".