- Folder1
- file1.js
- Folder2
- file2.js
I want to check if file2.js exists, from file1.js using fs (they're in different folders)
I haven't been able to find a way I can do this, without listing the whole directory of file2.js.
Does anyone know the best way to achieve this?