init: pristine aerc 0.20.0 source

This commit is contained in:
Mortdecai
2026-04-07 19:54:54 -04:00
commit 083402a548
502 changed files with 68722 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
package lib
import (
"fmt"
"os"
)
// FileSize returns the size of the file specified by name
func FileSize(name string) (uint32, error) {
fileInfo, err := os.Stat(name)
if err != nil {
return 0, fmt.Errorf("failed to obtain fileinfo: %w", err)
}
return uint32(fileInfo.Size()), nil
}