added completed flag to file object

I know you mentioned the completed callback, but it doesn't work for my use case.