my website's files got corrupted

i made a website for a calander for march with over 300 lines of code. Today i wanted to go and work on it more and i wanted to make a different index.html. But by doing this the other file (the file with a lot of code) got deleted. Is there any way i can get it back?

nvm i just realised that i created a backup file on my pc just in case. Turns out that it was pretty smart