Skip to content

Commit fb9ac3b

Browse files
author
Evgheni C.
committed
Update index.js
fs.mkdir -> fs.mkdirSync
1 parent 200a0ef commit fb9ac3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routes/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ function postAddScraper(req, res)
110110
var sitemap_path = "public/sitemaps/";
111111
fs.exists(sitemap_path, function(exists) {
112112
if (!exists) {
113-
fs.mkdir(sitemap_path);
113+
fs.mkdirSync(sitemap_path);
114114
}
115115
var filename = "sitemap_"+ data.host +".xml";
116116
fs.writeFile(sitemap_path + filename, data.content, function(err)

0 commit comments

Comments
 (0)