fileSizeForDirectory(at:)

func fileSizeForDirectory(at directoryURL: URL) throws -> UInt64

Calculates the actual sum of file sizes

  • Handler in case of error when calculating the filesize

    Declaration

    Swift

    func errorHandler(_: URL, error: Error) -> Bool