Visit the new Adobe Support Community
Please visit our new Adobe Support Community at https://community.adobe.com
Mon, Dec 30, 2013 6:26 AM
7 m ago
10 m ago
This is a bug in LR.
On Mac OS, "/" in file names is legal at the app level. Finder and other "native" apps, including Photoshop, allow "/" in file names.
But the Mac app-level libraries translate it to ":" at the operating system level. You can see that for yourself: Rename a file in Finder to contain "/", then start the Terminal app and look at the file name with "ls" -- the "/" is replaced by a ":".
LR (and at least some other apps, including Firefox) don't implement that app-level behavior of "/". LR's Preferences > File Handling has an option to replace"/" and ":" in file names with "-":
but that doesn't work with Import with Copy or Move -- you get "Unknown error" instead. Note that Import does translate spaces to "_" if you choose that option.
Well, luckily it was only 17 Photoshop files, with 17 corresponding jpegs I was trying to import, so I just renamed everything, and will try to remember not to use a slash from now on in image file names. Since I am not importing Word files or folders, I don't have to rename scores of other things. Hmm, I wonder if having an image file in a folder with a slash will upset Lightroom...
Yes, it will. Slashes are used as path separators in Lightroom, so a folder called “A/B” will be seen as a folder called “A” with a subfolder called “B” inside it.
Johan W. Elzenga,
"I wonder if having an image file in a folder with a slash will upset Lightroom..."
I just tested this, and LR will import photos from a folder whose name contains a slash, though it doesn't display the name correctly.
For example, with a folder named "race/bibs", the Import window displays it correctly, but after import, the Folders and Metadata panels display it as "race:bibs". I did some cursory testing of the various modules, and it seemed to work OK, though it wouldn't surprise me if there are some spots in LR that would choke on the folder.
Now that I am thinking about this, all of my images are in folders that have a near top level folder with a slash in the name that I created about 20 years ago. Also, I have collections which have a slash in the name, and have not had any issues. And yes, if I look in Lightroom's Folders, which I do not really use, it does display slashes as colons.
Thanks for all the help everyone.
@John_R_Ellis Thanks very much John, that solved the problem !
8 y ago
I just tried to add a bunch of files to Lightroom Classic 9.4, but it refused to add some of them, saying: “An unknown error occurred.”
The only commonality I can see is they all had a slash (/) in the file name, which Lightroom showed as a colon (:)- is that character not able to be used when importing files?
/ and : are invalid in filenames.
I didn't realize that was an issue in this day & age, as my macOS lets me use the slash character, and Photoshop also let me use it when creating the file...so not sure why Lightroom won't accept it. Thanks.
I'm curious, how did you get a "/" in a file name? Windows or Mac?
Mac- macOS 10.13. Photoshop 21.2.4.
I also use the slash in naming Word documents and folders sometimes...
View other replies
thanks to your replies .. the problem was solved eliminating the backslash /
How can we improve?