iMediaSandboxing / iMedia

The Karelia iMedia Browser, framework and application for browsing media on Mac OS X
http://www.karelia.com/imedia/
Other
18 stars 12 forks source link

Don't remove the file name extension when asking NSFileManager for the b... #56

Closed danielpunkass closed 9 years ago

danielpunkass commented 9 years ago

...est display name for an item. This has the unwanted effect of referring to a non-existant path and thus robbing it of its ability to apply any smarts such that e.g. a folder that could be mistaken for having a file extension does not have its name truncated unexpectedly. For example, this fixes a bug in which a folder called "10.10.2 Screenshots" would be displayed by iMedia as "10.10", the "2 Screenshots" having been dutifully removed before asking NSFileManager for a suitable display name.

jjac commented 9 years ago

Makes sense to me. Thanks Daniel.