fileProvider: change file copying code again. Still causes system errors on certain files.