node.js - fs.exists() is both true and false -
fs.exists(controller_path, function (exists) { util.debug( exists ? 'here' : 'not here' ); });
this example documentation. file exists each request, recieve:
debug: here debug: not here
you have posted sample code not actual code have. don't expect much.
however, he's shot-in-the-dark i'm willing bet right:
you don't realize browser sending 2 requests: 1 "/" , second "/favicon.ico".
Comments
Post a Comment