atotic's profile

3 Messages

 • 

100 Points

Mon, Dec 30, 2013 6:26 AM

Lightroom can't import files whose name contains a "/"

Lightroom 5.3 on OS X can't import files whose names contain a slash (ex: "mom/dad.jpg"). / is a legal filename character on os x. My stepdad loves naming his files with it.

Responses

Accepted Solution

Champion

 • 

6K Messages

 • 

103.6K Points

5 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.

(edited)

4.5K Messages

 • 

76.3K Points

8 y ago

'/' is a path separator on Mac, so I don't see how it can possibly be used in a filename. Are you sure you don't mean '\' (backslash)?

Champion

 • 

6.7K Messages

 • 

111.8K Points

8 y ago

Either way, Lightroom's cross-platform, so Adobe will stick to cross-platform limitations.

3 Messages

 • 

100 Points

8 y ago

"/" is a legal Mac separator. They had to do this to support MacOS legacy filesystem. See http://www.tempel.org/RB/FilePaths

It is possible to write cross-platform code to handle all legal file names. I've done it, it is annoying, you get pelted by tons of bug reports.

1.3K Messages

 • 

22.5K Points

8 y ago

Better to encourage your stepdad to adopt more robust file naming practices.

188 Messages

 • 

2.9K Points

5 m 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?

Note: This comment was created from a merged conversation originally titled Lightroom refuses to add files- An unknown error occurred

2 Messages

 • 

72 Points

2 m ago

thanks to your replies .. the problem was solved eliminating the backslash /