From Newsgroup: comp.sys.mac.system
"John N. Alegre" <
info@johnalegre.net> writes:
When I do work from the bash shell(OS X 10.4.5), I often find files in directories that are ._something where there is a file called
something.
What is going on here? Anybody have a clue? Naturally they are
hidden and never show up in finder windows.
Mac OS files are not simple streams of bytes, as they are on other
systems.
A Mac file contains several distinct objects:
- Finder info, which contains things like file type and creator information.
- A data fork (optional, but usually present.) This is a simple stream
of bytes - what is considered the entire file on other operating
systems.
- A resource fork (optional, commonly found, but becoming less common in
recent years.) This is a database-like structure where resources
(identified by type and index codes) are stored. There are literally
hundreds of different types of resources, including bitmaps, fonts,
menus, dialog templates, etc. Back in the days of the 68000
processor, application code was even stored in resources.
- Other named forks. (optional, rare). If an application wants to, it
can create additional forks, structured as the application wants.
The HFS and HFS+ file systems handle all this directly. Other file
systems (including UFS and MS-DOS) do not support more than the data
fork.
When you write a Mac file (which could be saving a document or copying a
file) to a file system that doesn't understand Finder Info and forks,
the data fork is saved with the file's name. The rest of the
information is stored in a second file that is the file's name with "._" prepended to it.
When you mount the volume on a Mac, the "._" files will not show up in
the Finder (although they can be seen from the command line). When you
drag the icon to an HFS or HFS+ volume, the two files will be combined
into a proper multi-forked Mac file.
If you are absolutely certain that your document doesn't use forks and
doesn't need any Finder info (e.g. Microsoft Office documents that have
the proper file-name extension), you can delete the ._ files without
problem. If, however, your document needs its resource fork or Finder
info (e.g. older versions of Claris Works files), then you must not
delete them or the document will break.
-- David
--- Synchronet 3.18b-Win32 NewsLink 1.113