file: implemented state=touched. Closes GH-4097