I have an image "1.png"
inside "Images"
directory. In css, I am referring image as "../../styles/ImagesNew/1.png"
, but this folder structure "styles/ImagesNew"
does not even exists in my solution.
I need to check, if "1.png"
exists inside "styles/ImagesNew"
folder, which it does not.
I dont want to do anything with this file. if the file does not exists inside the directory, escape from the if loop.
Just for more info, I am storing "1.png" in a string variable filename and "styles/ImagesNew/1.png" in a string variable foldername.
I searched a lot on internet, but i was unable to find "if a particular file exists inside a specific folder".