fs.getSize
From ComputerCraft Wiki
Revision as of 18:46, 28 November 2012 by AfterLifeLochie (Talk | contribs) (Moved to CAT:LuaCoreFunctions)
| 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") )
|