Check synchronously if file/directory exists in Node.js Asked 07 September, 2021 Viewed 1.9K times node.js fs 51 Votes 18 Answers How can I synchronously check, using node.js, if a file or directory exists? node.js fs Your reply on this question: Add Reply Cancel 18 Answer Order by Voted Recent Oldest Submit an answer Embed images in Question