leveldb: Introduce RecoverFile function