This is a joke because it's saying that the woman who was looking for her nails realized she had filed them away, meaning put them away in a filing cabinet, but it's also being used because you can also 'file' your nails meaning shave them down
In the office she was frantically looking for her false nails only to discover she had filed them away .