File housekeeping