Apple file system. Designed for solid state storage devices. Used on MacOS, iOS, tvOS and watchOS.
Questions tagged [apfs]
49 questions
1
vote
0 answers
FSEvent API doesn't preserve the case/normalization for file/folder delete
I'm using FSEvents APIs to detect file system changes for backup application. Application creates a FSEvent stream on ROOT (/) path. Now the problem starts if sombody removes a file via shell with different case/normalization. Let say if folder…

Suyash Singh
- 11
- 2
1
vote
2 answers
How to clone files with Python?
Using bash on macos I can create COW file clones with cp -c. Is there a Python library that provides the same functionality? The copy functions in shutil doesn't seem to mention cloning.
On APFS clones:…

antonagestam
- 4,532
- 3
- 32
- 44
1
vote
1 answer
Testing file names on macOS for equality, especially on HFS+ and APFS
Apple's new file system APFS brings along new rules for testing file name equality, and they're different from HFS. I am seeking the correct way to compare two names for equality, for APFS in particular, but for completeness it can't hurt to add one…

Thomas Tempelmann
- 11,045
- 8
- 74
- 149
1
vote
1 answer
Widget on High Sierra with APFS
Although still beta (beta 4 at time of writing) in my testing any version of MacOS using APFS will not display any Disk information within Monit Widget. The summary bar shows "Disk 0%" and once selected the sub-content is not displayed/not even…

Lee
- 11
- 2
0
votes
0 answers
My external HDD run 1.4 times faster with APFS, should I stick with it?
After doing speed test, my external HDD is 40% faster in data transferring speed after formatted it to APFS from HFS+ or even ExFat. But I hear people saying on the internet that mechanical disk should be formatted with HFS+ and APFS is slower for…

Zui Zui
- 113
- 6
0
votes
0 answers
Issue with Unity Resources.Load() and normalization of filenames on iOS, HFS+, APFS
On Unity, I have to load some resources that have special characters in filename, for example "è".
My approach so far has been to normalize the filename if I'm on iOS or macOS (otherwise load fails because file is not found)
#if UNITY_IOS ||…

Raffaele Tasso
- 57
- 1
- 9
0
votes
0 answers
On Mac OS, Why does this Swift code break my hard drive?
When I run this code specifying a 16TB disk:
//
// main.swift
// walking_on_directories
//
//
import Foundation
import CommonCrypto
import Foundation
func sha256Checksum(forFileAtPath path: String) -> String? {
// Open the file for reading
…

omegas porous
- 9
- 3
0
votes
1 answer
How to extend size of AFPS container?
On my Macbook Air currently running Mac OS 10.13, I noticed that the size of individual disks don't add up to the total size, it's not even close.
Couple of months back I had installed 3 MacOS in different container, once I was done I erased them.…

keyur
- 77
- 1
- 6
0
votes
0 answers
MacOS 10.15.4 APFS is overwriting case-sensitive files
I created a APFS volume on my MacOS 10.15.4 hard drive. diskutil info confirms it is a case-sensitive APFS.
When I untar a Linux-generated archive that contains case-sensitive files, similarly named files that differ only by case (such as File.h and…

Greg Burgreen
- 1
- 2
0
votes
1 answer
Why does an APK file size of 7.6 MB allocate 1.36 GB on an exFAT formatted external hard drive when reverse-engineered?
I have an apk file size of 7.6 MB. When I reverse-engineer this apk file through apktool, which is a reverse engineering tool for apk files, it allocates 1.36 GB on an exFAT formatted external hard drive. Actually when I extract this apk file on my…

talha06
- 6,206
- 21
- 92
- 147
0
votes
1 answer
Custom path for APFS volume in a external SSD
I have external SSD with APFS volumes inside, when plug-in this automatic mount at /Volumes/Workspace. Have a way to define to automatic mount in a predefined path?

Bruno Wego
- 2,099
- 3
- 21
- 38
0
votes
0 answers
iOS: Is [NSData writeToFile:atomically:YES] thread safe?
I'm trying to figure out what happens if I write to the same file using the method [NSData writeToFile:atomically:YES] from multiple threads. Is there a guarantee that the file will be uncorrupted after the threads finish writing to it?
For…

byohay
- 272
- 4
- 11
0
votes
0 answers
APFS changes how script work
i have a folder(ProjectA) containing multiple folders(Pano1, Pano2, Pano3...) which contain 2 images each (Left1 & right1, left2 & right2, left3 & right3...).
I used a script in photoshop to run photomerge on each 'Pano' folder in ProjectA.
It used…
0
votes
1 answer
How to read and modify meta data of a folder in High sierra (APFS)
I am not able to access .DS_store files in High Sierra. Do APFS store meta data of a folder somewhere else, How to read and modify meta data of a folder in APFS.

Ankita Shrivastava
- 75
- 8
0
votes
0 answers
Why the physical size of folder containing the sparse file is not displaying correct size in Info
I have one folder "test" which contains only one sparse file. The logical size of file is 5.24 GB but physical size is zero bytes, which is correctly displayed in file properties, but the physical size of parent folder is not zero bytes. I want to…

Ankita Shrivastava
- 75
- 8