file: Add file operation functions