Cached folders

nit return early in case of error: if (error) return reject(error);