What about for the other half of the question - does anyone know if there's a way to check a file's size within the filesystem through Python?
For example, I'm thinking about serializing an object and then sending it over to another phone (currently, the plan is using the pickle module). But in order to be able to send it, the comm unit needs to know the size of the serialized object. Currently I don't see anything in the pickle module about this, nor can I find any other API to doing it.
There is a function for checking the free disk space buried in the PDIS code. Here's how to use it. -Ken Rimey
# The following requires aosocket-series60_v20.sis from the PDIS
# distribution. Fetch the compressed tar of pdis-0.7.x from
# http://pdis.hiit.fi/pdis/download/pdis/ and look in the
# pdis/symbian/binaries directory for the aosocket sis archive. We
# can't promise that this API will continue to exist in future
# releases; it doesn't have anything to do with sockets and should
# probably be pulled out with other such stuff into a separate module
# someday. -Ken Rimey, 2.2.2005