pbakondy / filelogger

:memo: Ionic File Logger
MIT License
20 stars 14 forks source link

File size #2

Closed pliablepixels closed 9 years ago

pliablepixels commented 9 years ago

Hello is there a portable way to get file size? I'd like to delete the file if it exceeds a particular limit to manage space.

pbakondy commented 9 years ago

tada.wav check README

pliablepixels commented 9 years ago

Awesome! works great. I noticed you wrapped everything in timeouts. Is that recommended? I am calling your functions after the device is ready and have not wrapped in timeouts.

pbakondy commented 9 years ago

You mean timeouts in the example code? File writings are asynchronous command. Timeout are for waiting to finish file actions. If you use only the log writer methods you don't have to use timeout.

pliablepixels commented 9 years ago

thanks. why do we need timeouts when they return promises?

pbakondy commented 9 years ago

It is just easier to read the example code. You can use promises as well.

pliablepixels commented 9 years ago

I see. Thanks again.