jEdit Community - Resources for users of the jEdit Text Editor
What are these ._ files?
Submitted by joelwyland on Friday, 3 December, 2004 - 19:17
I tried searching the forum but searching for ._ isn't that successful.

Sometimes when I'm editing files, some sort of tmp file is left behind. For example, Foo.java and ._Foo.java

The ._ file isn't a copy of the original, it's always 82 bytes of non-visible text. I know this isn't my autobackup because it's not a copy of the file and I have my auto-backup set to go to a specific directory on my hard drive.

Any suggestions are welcome because those extra files keep messing with my source code repository operations.

Thanks!
Kenny
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
These ._ files have something
by Anonymous on Fri, 10/12/2004 - 14:55
These ._ files have something to do with Resource forks on OS X. You can fix it with running the FixupResourceForks command. You can find it in: /System/Library/CoreServices

Sjmielh
After some digging, I found this.
by Fuzzie Viking on Wed, 08/12/2004 - 18:31
http://www.versiontracker.com/moreinfo.fcgi?id=15918&db=mac

Just open it, then drag it to the mounted drive that needs cleaning. Good to go.
 
hey .. something like that wo
by stavros on Thu, 09/12/2004 - 17:43
hey .. something like that would be nice for removing all the jedit backup~ files from a docroot down to all it's chidren as well ....
 
Try the following Python scri
by Anonymous on Thu, 09/12/2004 - 19:11
Try the following Python script (requires Python 2.3, or greater). With a little work, it could be converted into a macro that could be run using the JythonInterpreter plugin. -Ollie
import os,sys

def rmbackups(directory):
    def rm(filepath):
        print filepath, '...',
        os.remove(filepath)
        print 'deleted'
    for (dirpath,dirs,files) in os.walk(directory):
        backups = filter(lambda path: path.endswith('~'), \
                          [os.path.join(dirpath,name) 
                           for name 
                           in files])
        map(rm, backups)

def main(args=None):
    if args is None:
        args = sys.argv[1:] or [os.getcwd()]
    map(rmbackups,args)

if __name__ == '__main__':
    main()
 
To follow up my own post, you
by Anonymous on Thu, 09/12/2004 - 19:13
To follow up my own post, you may just want to set "Backup Directory" -- so all your backups go into a central spot, vs scattered along side the originals.

-Ollie
 
Well I'll be ... Who knew
by Anonymous on Tue, 14/12/2004 - 05:45
Well I'll be ...

Who knew that option even existed? Smiling

Thanks for the heads up on that, and the python script as well. One of those two is going to do the trick, to be sure.

-steve
Are you using OS X?
by stavros on Sun, 05/12/2004 - 05:44
I know ._files come up when OS X machines are accessing samba mounted drives ... I read it somewhere, I'm not sure why it's doing that (does it happen to linux machines working off of samba mounted drives?)

Anyway ... that's probably what it is ... you could/should tweak your .cvsignore (are the appropriate equivalent for your SCM tool of choice) file to, well, ignore 'em.

-steve
 
Is there any way to not create them?
by Fuzzie Viking on Wed, 08/12/2004 - 18:04
Any websites that would be good for hunting for answers to this?

Your advice helped me as well, thanks.
 
Yeah, OS X to a Linux SMB
by joelwyland on Mon, 06/12/2004 - 18:41
Looks like you hit the nail on the head. Thanks for the answer!
User login
Browse archives
« April 2024  
MoTuWeThFrSaSu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   82348
Context Free Art (*.cfdg)   0.31   46055
JBuilder scheme   .001   18495
BBEdit scheme   1.0   18116
ColdFusion scheme   1.0   18024
R Edit Mode - extensive version   0.1   17473
Advanced HTML edit mode   1.0   16206
Matlab Edit Mode   1.0   16068
jEdit XP icons   1.0   15229
XP icons for jEdit   1.1   14293