Difference between revisions of "Fs.getSize"
From ComputerCraft Wiki
(Created page with "{{lowercase}} {{Function |name=fs.getSize |args=string path |returns=bytes |api=fs |desc=Gets the size of a file |examples= {{Example |desc=Get the size of t...") |
m (Moved to CAT:LuaCoreFunctions) |
||
| Line 12: | Line 12: | ||
}} | }} | ||
}} | }} | ||
| + | |||
| + | [[Category:Lua_Core_Functions]] | ||
Revision as of 18:46, 28 November 2012
| Gets the size of a file | |
| Syntax | fs.getSize(string path) |
| Returns | bytes |
| Part of | ComputerCraft |
| API | fs |
Examples
| Get the size of the shell from the ROM and print it | |
| Code |
print( fs.getSize("/rom/programs/shell") )
|