Use getFileSize() instead of sys/stat.h directly