This article does not cite any sources. Please help improve this articlebyadding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "Case preservation" – news · newspapers · books · scholar · JSTOR (December 2009) (Learn how and when to remove this message) |
Infile systems, case preservation is the preservation of the letter case (uppercase or lowercase) of letters in file names. If an attempt is made to create a file named "ThisIsAFile" on a file system that preserves letter case, the file's name will be "ThisIsAFile", rather than, for example, "thisisafile" or "THISISAFILE".
In contrast, a file system that does not preserve letter case will typically store letters in file names either as all lowercase or as all uppercase, and the letter case information will thus be lost.
It is possible and common for a system to be case-insensitive, yet case-preserving. This combination is often considered most natural for people to understand, because most people prefer using the correct capitalization but will still recognize others. For example, if someone refers to the "uNiTeD states oF AMERICA," it is understood to mean the United States of America, even though the capitalization is incorrect.
The operating systems macOS, current versions of Microsoft Windows and all versions of Amiga OS are case-preserving and case-insensitive in most cases. Since they are insensitive, one can optionally use any combination of lowercase or uppercase letters when requesting a file. However, since they are case sensitive, the file name will be presented in the combination of lower and upper case letters like the name of the file is saved.
This also means that one cannot save two files with the same name in the same place if the only difference in their file names is capitalization (lowercase or uppercase letters). For example, one cannot find readme.txt and Readme.tXT in the same folder.
A system that is non-case-preserving is necessarily also case-insensitive.
This applies, for example, to Identifiers (column and table names) in some relational databases (for example DB2, Interbase/Firebird, Oracle and Snowflake[1]), unless the identifier is specified within double quotation marks (in which case the identifier becomes case-sensitive).[2]
In a non-case-preserving system, arbitrary capitalization may be used by the system for storage and display, such as for example all letters being store in lowercase (or alternatively all in uppercase). For example, in Oracle Database, a table created with the name CustomersRegion1
will be stored as CUSTOMERSREGION1
(unless it is created under the name "CustomersRegion1"
, which means that the identifier will be treated as case-sensitive, and therefore must be referenced with that exact casing).
Some systems are case sensitive, such as Linux. This means that there can be two files in the same folder whose only difference is capitalization. For example, readme.txt and Readme.tXT can be found in the same folder.
Some examples of file systems with various case-sensitivity and case-preservation are:
Case-sensitive | Case-insensitive | |
---|---|---|
Case-preserving | UFS, ext3, ext4, HFS Plus (optional), NTFS (in unix), APFS (optional) | VFAT, FAT32 which is basically always used with long filename support, NTFS, HFS Plus, APFS |
Non-case-preserving | Impossible | FAT12, FAT16 only when without long filename support |
| |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||
Disk and non-rotating |
| ||||||||||
NAS |
| ||||||||||
Specialized |
| ||||||||||
Types |
| ||||||||||
Features |
| ||||||||||
Interfaces |
| ||||||||||
Lists |
| ||||||||||
Layouts |
|
This computer-storage-related article is a stub. You can help Wikipedia by expanding it. |