Commit 4333244e authored by yann300's avatar yann300

fix chrome cloud sync (use of resolve directory)

parent 554609b6
......@@ -46,16 +46,19 @@ module.exports = function (filesProviders) {
})
}
for (var y in filesProviders['browser'].list()) {
console.log('checking', y)
filesProviders['browser'].get(y, (error, content) => {
filesProviders['browser'].resolve('browser', (error, files) => {
if (!error) {
Object.keys(files).forEach((path) => {
filesProviders['browser'].get(path, (error, content) => {
if (error) {
console.log(error)
} else {
obj[y] = content
obj[path] = content
count++
check(y)
check(path)
}
})
})
}
})
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment