I’m glad this is solved for now. For next time: you probably restartes the kernel between runs, which means you have to run all the cells again. The cell which defines files was probably ran before a kernel restart (e.g. you closed the notebook and opened it again).