The function returns the file size in bytes. When no or an invalid file path has been defined, the function throws an exception.