Hide language buttons again if page is empty
This commit is contained in:
@ -35,4 +35,9 @@ extension URL {
|
||||
try url.ensureParentFolderExistence()
|
||||
try FileManager.default.copyItem(at: self, to: url)
|
||||
}
|
||||
|
||||
var size: Int? {
|
||||
let attributes = try? FileManager.default.attributesOfItem(atPath: path)
|
||||
return (attributes?[.size] as? NSNumber)?.intValue
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user