[dolphin] [Bug 428153] Dolphin allows "/" (slash character) in filenames
Sadi
bugzilla_noreply at kde.org
Wed Jul 30 10:12:54 BST 2025
https://bugs.kde.org/show_bug.cgi?id=428153
--- Comment #3 from Sadi <sadiyumusak at gmail.com> ---
(In reply to manuelschneid3r from comment #2)
Apparently, KDE/Dolphin developers have taken care of this by automatically
replacing a slash character (ASCII forward slash, /, U+002F) with a similar
looking character (fraction slash, ⁄ , U+2044) in filenames, while treating it
as a path separator, and automatically creating a sub-directory in folder
names.
This is an intentional design choice (which I think is a good one).
For example, below is a terminal output to demonstrate it - after entering the
name "Text/File.txt" to create a new text file in the user home directory, and
then creating a folder named "Text", and another new text file named "file.txt"
there, with different contents. You can see how forward slash was automatically
replaced with fraction slash by Dolphin behid the scene in file 1:
file1="$(find . -mindepth 1 -maxdepth 1 -type f -name "*File*")"
file2="$(find ./Text -mindepth 1 -maxdepth 1 -type f -name "*File*")"
echo "$file1"
./Text⁄File.txt
echo "$file2"
./Text/File.txt
cat "$file1"
This file is under my "$HOME" directory, and is named "Text⁄File.txt"
Its full path is: "$HOME/Text⁄File.txt" (not "$HOME/Text/File.txt")
cat "$file2"
This file is under the directory "$HOME/Text", and is named "File.txt"
Its full path is: "$HOME/Text/File.txt"
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the kfm-devel
mailing list