I am trying to check for a specific file in an open project using
atom.project.contains(atom.project.path + "/filename"), where
filename is the name of the file. This seems to return
true no matter what filename I give it. What is the proper way to check for the existence of a file?
P.S. I know that this approach will not likely work on Windows due to the hardcode “/” path separator.