Files containing quotes (' and ") cannot be moved, cut or copied
What Happened?
- I downloaded some albums from Bandcamp in .zip format. Three titles contained a single quote in their filename. They could not be copied, cut, or moved to a different folder. I only tested this on and within my single ssd drive in my laptop.
- The issue is independent of the file format. The contents including .ogg and .png files had the same filename, and they also could not be copied, cut, or moved to another location.
- I then replaced the quotes with a diacritic mark (´) and the files then behaved as should.
I investigated further. If I close the quotes (put two of them in the filename like this: name''.png), the quotes will be ignored when moving and an error popup will show up, informing the user that such file or directory does not exist:
Steps to Reproduce
- Download or rename a file, so that it contains single or double quotes.
- Try moving the file to a different folder. Both drag-and-drop and ctrl+c or ctrl+x should not work.
- Replace the quotes with a different character. Then you should be able to move, cut, and copy the file.
Expected Behavior
Either the file should replace the quotes automatically with i. e. a dash (-) when pasting/downloading the file from a different device/the internet, and also show an error message when a person tries to rename the file to contain quotes. The more logical option would be to allow the use of quotes in filenames. I have tried doing the same operations in a sideloaded Dolphin file manager from Flathub, which had no issues with quotes.
OS Version
8.x (Circe)
OS Architecture
amd64 (on most hardwares)
Session Type
Classic and Secure Sessions (I have tested in both)
Software Version
Latest release (I have run all updates)
Log Output
júl 28 08:15:48 danchi-lenovold io.elementary.f[3264]: FileUtils.vala:33: Error when unquoting file:///home/danchi/Stiahnuté/The Quick Brown Fox - NERVE'S ENDING.zip. Prebytočné úvodzovky v príkazovom riadku alebo v inom texte shellu v úvodzovkách
(After translation, the error says: Excessive quotes in command line or other shell text in quotes.)
Hardware Info
The laptop is an older Lenovo G700, with upgraded ram and a new ssd:
This could be caused by the same bug that causes #2615. A fix for this is awaiting approval and merging and when that is done a new release will be made.