{{newin|[[0.9.0]]|090|type=function}}
{{deprecatedin|[[11.0]]|110|type=function|text=This function is deprecated and is replaced by [[love.filesystem.getInfo]]}}
Gets the size in bytes of a file.
== Function ==
=== Synopsis ===
<source lang="lua">
size, errormsg = love.filesystem.getSize( filename )
</source>
=== Arguments ===
{{param|string|filename|The path and name to a file.}}
=== Returns ===
{{param|number|size|The size in bytes of the file, or nil on failure.}}
{{param|string|errormsg (nil)|The error message on failure.}}
== See Also ==
* [[parent::love.filesystem]]
[[Category:Functions]]
{{#set:Description=Gets the size in bytes of a file.}}
== Other Languages ==
{{i18n|love.filesystem.getSize}}