Required Instance Methodtuist.filesystem 0.7.9FileSystem

fileSizeInBytes(at:)

Returns the size of a file at a given path. If the file doesn’t exist, it returns nil.

FileSystem.swift:240
func fileSizeInBytes(at: AbsolutePath) async throws -> Int64?

Parameters

at

Path to the file whose size will be returned.

Returns

The file size, otherwise nil