Builder Simulator

My scripts can run on any machine (linux, windows, server machine). I want to validate the file was downloaded or not when I click on a link in my application. For this, I am creating a folder in my framework, whose location I am loading on runtime (because it is inside my framework).