Returns the default configuration for a Mac OS X-like file system.
The primary differences between this configuration and the default
#unix()configuration are that this configuration does Unicode normalization on the display and
canonical forms of filenames and does case insensitive file lookup.
A file system created with this configuration:
- uses
/ as the path name separator (see
PathType#unix() for more
information on the path format)
- has root
/ and working directory
/work
- does Unicode normalization on paths, both for lookup and for
Path objects
- does case-insensitive (for ASCII characters only) lookup
- supports only the
BasicFileAttributeView file attribute view, to
avoid overhead for unneeded attributes
- supports hard links, symbolic links and
FileChannel
To create a modified version of this configuration, such as to include the full set of UNIX
file attribute views or to use full Unicode case insensitivity,
#toBuilder().
Example:
Configuration config = Configuration.osX().toBuilder()
.setAttributeViews("basic", "owner", "posix", "unix")
.setNameCanonicalNormalization(NFD, CASE_FOLD_UNICODE)
.setWorkingDirectory("/Users/user")
.build();