Article
About Apple File System --关于苹果的文件系统
Use high-level APIs to get the most out of Apple File System.
--使用高级api最大限度地利用Apple文件系统。
Overview --概览
Apple File System replaces HFS Plus as the default file system for iOS 10.3 and later, and for macOS High Sierra and later. Apple File System offers improved file system fundamentals as well as several new features, including cloning, snapshots, space sharing, fast directory sizing, atomic safe-save, and sparse files.
--Apple File System取代HFS Plus作为iOS 10.3及以后版本和macOS High Sierra及以后版本的默认文件系统。Apple File System是改进了的文件系统基础,提供了一些新的特性,包括克隆、快照、空间共享、快速目录调整、原子安全保存和稀疏文件。
Using high-level APIs in Foundation, such as FileManager
and FileHandle
, to interact with files takes advantage of the new behavior provided by Apple File System automatically, without requiring changes your code.
--使用Foundation中的高级api(如FileManager
和FileHandle
)与文件交互,可以利用苹果文件系统自动提供的新行为,而不需要更改代码。
If you need to interact with the file system directly, without using any frameworks or the operating system, read Apple File System Reference.
--如果您需要直接与文件系统交互,而不需要使用任何框架或操作系统,请阅读Apple file system Reference。
Clones Reduce the Cost of Copying --克隆降低了复制的成本
A clone is a copy of a file or directory that occupies no additional space on disk. Clones let you make fast, power-efficient file copies on the same volume. The copyItem(at:to:)
and