Skip to content

Commit 4c353db

Browse files
doc
Signed-off-by: Marino Faggiana <marino.faggiana@nextcloud.com>
1 parent 71b1082 commit 4c353db

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎Sources/NextcloudKit/NextcloudKit+Upload.swift‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,8 @@ public extension NextcloudKit {
259259
options.customHeader?["Destination"] = serverUrlFileName.urlEncoded
260260
options.customHeader?["OC-Total-Length"] = String(totalFileSize)
261261

262-
// Disk space preflight (best-effort strict version: throw if query fails)
262+
// Performs a strict disk-space preflight check on the output directory.
263+
// Throws if available free space cannot be determined or is insufficient.
263264
#if os(macOS)
264265
let fsAttributes = try FileManager.default.attributesOfFileSystem(forPath: "/")
265266
let freeDisk = (fsAttributes[.systemFreeSize] as? NSNumber)?.int64Value ?? 0

0 commit comments

Comments
 (0)