Fix file handling with filepath type and better error handling cca0a5d hellorahulk commited on Jan 23