If I try the following code on my Watch Series 3 with WatchOS 7.2 beta 18S5555c, I get a negative value of about 864MB, instead of the approximate 8GB it should report:
The same happens with url "/".
What gives? What am I doing wrong?
iOS and macOS behaves correctly.
Code Block try print("total=\(URL(fileURLWithPath: NSHomeDirectory()).resourceValues(forKeys: [.volumeTotalCapacityKey]).volumeTotalCapacity ?? 42))") total=Optional(-864661504))
The same happens with url "/".
What gives? What am I doing wrong?
iOS and macOS behaves correctly.