The case of the iden­ti­cal file­names

Mac Format - - APPLE TALK -

I’m study­ing Busi­ness Com­put­ing and want to write C pro­grams on my Mac that will even­tu­ally be run on Linux ma­chines to be graded. Most li­braries and source files we are given use the case to dis­tin­guish be­tween files, so my­FILE is dif­fer­ent to My­File, say. But OS X treats the file­names as iden­ti­cal. Can I make it recog­nise the dif­fer­ence, with­out man­u­ally re­nam­ing ev­ery file twice over? Brody Hamil­ton The case sen­si­tiv­ity, or lack of it, isn’t part of the op­er­at­ing sys­tem, it’s part of the fil­ing sys­tem that’s cre­ated when you for­mat (or par­ti­tion) the disk. The de­fault fil­ing sys­tem for Mac disks is Jour­naled HFS+, which ap­pears in Disk Util­ity as ‘Mac OS Ex­tended (Jour­naled)’. What you need is ‘Mac OS Ex­tended (Cas­esen­si­tive, Jour­naled)’. Con­vert­ing your en­tire disk to this will re­quire you to back it all up, re­for­mat it and re­store. And any­way, cas­esen­si­tive fil­ing sys­tems can con­fuse some sys­tem util­i­ties. It’s bet­ter to cre­ate a small par­ti­tion in Disk Util­ity with a case-sen­si­tive fil­ing sys­tem, just for your uni­ver­sity files. If you want a dif­fer­ent fil­ing sys­tem, you can put it on its own par­ti­tion or in a disk im­age.

Newspapers in English

Newspapers from Australia

© PressReader. All rights reserved.