Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Unf: UNixize Filename – replace annoying anti-Unix characters in filenames (github.com/io12)
3 points by io12 on June 13, 2019 | hide | past | favorite | 2 comments


Standardising file extensions to lowercase and short forms might be a useful option;

    JPG -> jpg
    jpeg -> jpg
    
I'm not aware of file extensions conventionally presented as mixed case, though ePub might be a possible case.

Does this handle collisions in generated names?


Amen. The Mac goes one level wonkier by allowing file names to visually appear mixed-case, but treats them as if they're upper/lower only one way.

For example, Thing.JPG, thing.jpg, THING.Jpg are all the same file name even though under Linux they would not be.

I didn't look, but does unf check to make sure renaming Spaced Filename.txt to Spaced_Filename.txt check that it isn't clobbering a pre-existing Spaced_Filename.txt and offer a different remediation? Bulk collisions could be very messy.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: