1852 posts
Location
Sweden
Posted 25 February 2013 - 02:13 AM
Well the title says it all..
I want to see the file size at the bottom or something when editing and
be able to see if like something like this too
--While In Desktop or what we should call it
size <filename> --When you do this you can see the filesize
--While editing You can Call It like this or something
size(filename)
--Printing The Size
printSize(filename)
This Idea came too me since I always like to know how big the file is.
I think it also would be good to see how much memory it is on the
computer in total too.
7508 posts
Location
Australia
Posted 25 February 2013 - 02:18 AM
so you mean like
fs.getSize ?? and the undocumented (wiki) fs.getFreeSpace()
1852 posts
Location
Sweden
Posted 25 February 2013 - 02:27 AM
FacePalm..
Haven't seen that before.
And I ain't looking in the wiki so much soo…
But thx anyway now that I know that, BTW is it in 1.5 or all the versions?
7508 posts
Location
Australia
Posted 25 February 2013 - 02:30 AM
not sure if its all versions. but getSize has been at least 1.4, not sure about getFreeSpace.
all functions and variables in CC as of 1.5 (and 2 from cc-emu) :P/>
http://pastebin.com/78zRf6nY
Edited on 25 February 2013 - 01:32 AM
1852 posts
Location
Sweden
Posted 25 February 2013 - 02:35 AM
And it shows
print( fs.getSize("/rom/programs/shell") )
Could'nt I just do This?
print("fs.getSize("/"))
7508 posts
Location
Australia
Posted 25 February 2013 - 02:38 AM
what?
for me
print( fs.getSize("/rim/programs/shell" )
prints 4991 which is bytes.
1852 posts
Location
Sweden
Posted 25 February 2013 - 04:27 AM
I meant to write
print(fs.getSize("/"))
--And it seem to work
--Also
print("Free Disk Space:"..fs.getFreeSpace("/").." BYTES")
--Seems to work as it should =)