Checking if no more room on device

Hi there,

Just wondering if anyone knows the answer to the following…

My app allows the user to record audio and make copies of those audio files for further editing.

Is there a way to check at the time of recording and at the time of copying a file whether there is enough room on the device to save the new file?

I basically just need to be able to let the user know that they need to free up some space rather than just get a blank error so is there an error code that’s returned when saving a file or anything?

Thanks in advance - much appreciated,

Ian [import]uid: 123492 topic_id: 33670 reply_id: 333670[/import]