You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • You can't at the moment - the best you could do is require("fs").readdir().indexOf("foo")>=­0

    Perhaps it should return undefined rather than an empty string if the file doesn't exist?

About

Avatar for Gordon @Gordon started