files icon indicating copy to clipboard operation
files copied to clipboard

Files containing quotes (' and ") cannot be moved, cut or copied

Open JohnDumpling opened this issue 4 months ago • 1 comments

What Happened?

  1. 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.
  2. 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.
  3. 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:

An error message popup, showing the filename and ignoring the inputted two single quotes. The error message is in Slovak: Nastala chyba pri presúvaní súboru do /home/danchi/Obrázky/Snímky obrazovky. Details: Chyba pri presúvaní súboru /home/danchi/Stiahnuté/ 2025-07-25-103309_1366x768_Scrot.png: Adresár alebo súbor neexistuje

Steps to Reproduce

  1. Download or rename a file, so that it contains single or double quotes.
  2. Try moving the file to a different folder. Both drag-and-drop and ctrl+c or ctrl+x should not work.
  3. 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:

A System setting window in the System tab, showing hardware information in Slovak: Dvojjadrový Intel® Pentium® CPU 2020M @ 2.40GHz; Intel® HD Graphics 2500; NVIDIA® GeForce® 610M/710M/810M/820M® / GT 620M/625M/630M/720M (GeForce 720M); 8 GB pamäť; 512 GB úložisko

JohnDumpling avatar Jul 28 '25 06:07 JohnDumpling

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.

jeremypw avatar Jul 28 '25 16:07 jeremypw