Rename compact method to compactFile.