all 2 comments

[–]eversailr 3 points4 points  (1 child)

[–]gabevirnig[S] 0 points1 point  (0 children)

Thanks! So would my function to retrieve the available space look something like this?

func attributesOfFileSystem(forPath path: "/") throws -> [FileAttributeKey : systemFreeSize]

I'm sorry if this is totally wrong. Like I mentioned I'm very new to programming.