fix chrome cloud sync (use of resolve directory)

pull/3094/head
yann300 7 years ago
parent 64af000614
commit f4835812b2
  1. 27
      src/app/files/chromeCloudStorageSync.js

@ -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) => {
if (error) {
console.log(error)
} else {
obj[y] = content
count++
check(y)
}
})
}
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[path] = content
count++
check(path)
}
})
})
}
})
}

Loading…
Cancel
Save