Sidecar files, also known as buddy files or connected files, are
computer files
A computer file is a resource for recording data on a computer storage device, primarily identified by its filename. Just as words can be written on paper, so too can data be written to a computer file. Files can be shared with and transferred b ...
that store
data
Data ( , ) are a collection of discrete or continuous values that convey information, describing the quantity, quality, fact, statistics, other basic units of meaning, or simply sequences of symbols that may be further interpreted for ...
(often
metadata
Metadata (or metainformation) is "data that provides information about other data", but not the content of the data itself, such as the text of a message or the image itself. There are many distinct types of metadata, including:
* Descriptive ...
) which is not supported by the
format of a source file.
There may be one or more sidecar files for each source file. There may also be "metadata databases" where one database contains metadata for several source files.
In most cases the relationship between the source file and the sidecar file is based on the file name; sidecar files have the same base name as the source file, but with a different extension. The problem with this system is that most operating systems and
file managers have no knowledge of these relationships, and might allow the user to rename or move one of the files thereby breaking the relationship.
Examples
;Amiga Hunk metadata
:In
AmigaOS
AmigaOS is a family of proprietary native operating systems of the Amiga and AmigaOne personal computers. It was developed first by Commodore International and introduced with the launch of the first Amiga, the Amiga 1000, in 1985. Early versions ...
, a file with a
extension contains metadata for a companion
Amiga Hunk executable file
In computer science, executable code, an executable file, or an executable program, sometimes simply referred to as an executable or binary, causes a computer "to perform indicated tasks according to encoded instructions", as opposed to a da ...
.
;Extensible Metadata Platform
:
Extensible Metadata Platform (XMP) metadata is stored in a sidecar file when either a
file format
A file format is a Computer standard, standard way that information is encoded for storage in a computer file. It specifies how bits are used to encode information in a digital storage medium. File formats may be either proprietary format, pr ...
does not support embedded XMP metadata or if the workflow requires this.
;DxO sidecar
:Similar to the XMP format, DOP sidecars store metadata and edits made through DxO PhotoLab and other DxO tools
;Connected Web Files and Folders
:A
file system object that associated two or more files. The file system treats connected files as a unit for purposes of moving, copying, and deleting. Some versions of
Internet Explorer
Internet Explorer (formerly Microsoft Internet Explorer and Windows Internet Explorer, commonly abbreviated as IE or MSIE) is a deprecation, retired series of graphical user interface, graphical web browsers developed by Microsoft that were u ...
and
Microsoft Word
Microsoft Word is a word processor program, word processing program developed by Microsoft. It was first released on October 25, 1983, under the name Multi-Tool Word for Xenix systems. Subsequent versions were later written for several other platf ...
can save an HTML and its hyperlinked assets as such a unit.
;THM
:Many digital cameras will store a (thumbnail) file alongside a recorded movie, with the same base filename as the movie file. These thumbnail files are
JFIF
The JPEG File Interchange Format (JFIF) is an image file format standard published as ITU-T Recommendation T.871 and ISO/IEC 10918-5. It defines supplementary specifications for the Digital container format, container format that contains the image ...
-encoded image files. This system allows for quickly displaying a still preview of the movie, and storing camera data which is not supported by the AVI file format.
;INF
:Acorn filesystems support metadata such as load and execution addresses that may not be natively supported on other filesystems. A file is used to store this metadata in text format, stored in a file with the same base filename, e.g. Menu and , and .
;JPEG + WAV
:Some digital cameras allow for voice/audio annotations with photos. These are then stored as
WAV audio files alongside the
JPEG
JPEG ( , short for Joint Photographic Experts Group and sometimes retroactively referred to as JPEG 1) is a commonly used method of lossy compression for digital images, particularly for those images produced by digital photography. The degr ...
photo file, with the same base filename.
;PDF + annotations
PDF viewers which allow the reader to annotate documents with comments and drawings may store these in a sidecar file, such as
Xournal's files.
;RunPacker
:The MS-DOS-based
self-extracting archive
A self-extracting archive (SFX or SEA) is a computer executable program which combines compressed data in an archive file with machine-executable code to extract the information. Running on a compatible operating system, it does not need a ...
generator ''RunPacker'' relied heavily on sidecar files because the proprietary package format PFA (packfile archive) used in it did not natively store
file attribute
File attributes are a type of metadata that describe and may modify how files and/or directories in a filesystem behave. Typical file attributes may, for example, indicate or specify whether a file is visible, modifiable, compressed, or encrypte ...
s or
timestamp
A timestamp is a sequence of characters or encoded information identifying when a certain event occurred, usually giving date and time of day, sometimes accurate to a small fraction of a second. Timestamps do not have to be based on some absolu ...
s. To address this limitation, a
backward-compatible system of ''
auxiliary files'' (as called in official documentation) was implemented to store aforementioned data in volumes without changing their format. These were added to the PFA volume the same way as ordinary files, except they were marked by special characters in their name, and software made aware of this system (sometimes called ePFA, ''Extended PFA'') processed them
transparently. Older programs relying on the PFA format would simply read or extract the file along with all others found in the volume. The ePFA format was designed with further extensibility in mind, and has been actually extended with several features over time.
;Meta Information Encapsulation (MIE)
:
Meta Information Encapsulation sidecar files. The MIE format is an extensible, dedicated meta information format part of
ExifTool. MIE files can be used to encapsulate meta information from many sources and bundle it together with any type of file.
A variation of this are copies of the source file which contain largely the same information, but in a different format or from a previous version:
;Exif
:Since many JPEG editing software used to destroy
Exif
Exchangeable image file format (officially Exif, according to JEIDA/JEITA/CIPA specifications) is a standard that specifies formats for images, sound, and ancillary tags used by digital cameras (including smartphones), scanners and other system ...
metadata stored in digital photos, some photo cataloging applications can extract the Exif data and store that in an file, so that the metadata can later be re-inserted into the JPEG file.
;Raw + JPEG
:Many digital cameras allow to store both uncompressed
raw data and a
JFIF
The JPEG File Interchange Format (JFIF) is an image file format standard published as ITU-T Recommendation T.871 and ISO/IEC 10918-5. It defines supplementary specifications for the Digital container format, container format that contains the image ...
-encoded image file when shooting in raw mode. This allows for faster previewing the photo, and support by applications that do not support the (often undocumented) raw format.
;TIF + TFW or JPG + JGW
:Aerial photos may be supplied with a
World File that determines the location, size and rotation of the image.
Alternatives
Rather than storing data separately, it can be stored as part of the main file. This is particularly done for
container files, which allow certain types of data to be stored in them. Instead of separate files on the file system, multiple files can be combined into an
archive file
In computing, an archive file stores the content of one or more files, possibly compressed, with associated metadata such as file name, directory structure, error detection and correction information, commentary, compressed data archives, sto ...
, which keeps them together, but requires that software processes the archive file, rather than individual files. This is a generic solution, as archive files can contain arbitrary files from the file system.
Forks
A file system level solution for the same problem are ''
forks
In cutlery or kitchenware, a fork (from 'pitchfork') is a Eating utensil, utensil, now usually made of metal, whose long handle terminates in a head that branches into several narrow and often slightly curved tine (structural), tines with whic ...
,'' which allow multiple pieces of data to be associated with a single file. Sidecar files can be seen as "forks for file systems without native support for forks".
These can then be manipulated with usual file system tools: because the support is built into the operating system, these
resource fork
A resource fork is a fork of a file on Apple's classic Mac OS operating system that is used to store structured data. It is one of the two forks of a file, along with the data fork, which stores data that the operating system treats as unstruct ...
s will not show up as separate files, and all applications inherit support for resource forks. However, forks cannot be copied to file systems without support for forks, or transmitted over a channel that does not support forks. For interchange forks are generally instead stored as sidecar file.
The
classic Mac OS
Mac OS (originally System Software; retronym: Classic Mac OS) is the series of operating systems developed for the Mac (computer), Macintosh family of personal computers by Apple Computer, Inc. from 1984 to 2001, starting with System 1 and end ...
and
macOS
macOS, previously OS X and originally Mac OS X, is a Unix, Unix-based operating system developed and marketed by Apple Inc., Apple since 2001. It is the current operating system for Apple's Mac (computer), Mac computers. With ...
are notable examples of operating systems with support for forks, in the
HFS HFS may refer to:
Businesses and organisations
* Croatian Film Association ()
* Hellenic Fire Service, Greece
* Hospitality Franchise Systems, US
Computing
* Hierarchical file system, a system for organizing directories and files
* Hierarchica ...
file system. However, this causes problems with exchanging over
ISO 9660
ISO 9660 (also known as ECMA-119) is a file system for optical disc media. The file system is an international standard available from the International Organization for Standardization (ISO). Since the specification is publicly available, im ...
format
CD-ROM
A CD-ROM (, compact disc read-only memory) is a type of read-only memory consisting of a pre-pressed optical compact disc that contains computer data storage, data computers can read, but not write or erase. Some CDs, called enhanced CDs, hold b ...
,
FAT
In nutrition science, nutrition, biology, and chemistry, fat usually means any ester of fatty acids, or a mixture of such chemical compound, compounds, most commonly those that occur in living beings or in food.
The term often refers specif ...
format
MS-DOS
MS-DOS ( ; acronym for Microsoft Disk Operating System, also known as Microsoft DOS) is an operating system for x86-based personal computers mostly developed by Microsoft. Collectively, MS-DOS, its rebranding as IBM PC DOS, and a few op ...
disks, and over internet email, and requires the use of sidecar files to store this information. Microsoft
NTFS
NT File System (NTFS) (commonly called ''New Technology File System'') is a proprietary journaling file system developed by Microsoft in the 1990s.
It was developed to overcome scalability, security and other limitations with File Allocation Tabl ...
supports Alternate Data Streams which are similar.
References
Windows IT Pro - What is the Windows 2000 Connected File feature?*
{{Computer files
Metadata publishing