Fix FileEntry API.
Fix bug in FileEntry destructor.