Move file and directory to inert. Closes #2022