Sunday 6 May 2018

macos - TextMate creates temporary files, and doesn't delete them!


I'm using TextMate and each time I edit a file, a copy like ._file is created.


This is driving my crazy and last time it create a serious problem on some app I'm using which believe it that file was a new component and as it could not load it ( because it was NOT a new component ) it crashed.


How can I get rid of this temporary files?



Answer



._file files aren't actually temporary files but a file that holds the resource fork data for Mac OS X. Mac OS X will create this for files that are being stored on a non-HFS system in order to preserve the metadata.


However you can run the following command to disable the creation by TextMate of a resource fork:


defaults write com.macromates.textmate OakDocumentDisableFSMetaData 1

If you have the latest version (build 1589 - Nov. 23rd, 2009) it also allows you to enter an array of file systems instead if you still want the metadata on other drives (say yes to your internal, and no to any network or non-HFS drive):


defaults write com.macromates.textmate OakDocumentCustomFSMetaData '( afpfs, nfs, msdos, hfs )'

No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...