replace "path.exists" to "fs.exists"