Updated to create directory to store local file