LOGE("Calculating data directory failed.");
goto error;
}
- *data_size += size;
- LOGD("data_size: %lld", *data_size);
+ if (type != STORAGE_TYPE_INTERNAL_GLOBAL_PATH) {
+ *data_size += size;
+ LOGD("data_size: %lld", *data_size);
+ }
} else if (strncmp(name, "cache", strlen("cache")) == 0) {
LOGD("traverse path: %s/%s", app_root_dir, name);
ret = fstat(subfd, &st);
LOGE("Calculating cache directory failed.");
goto error;
}
- *cache_size += size;
- LOGD("cache_size: %lld", *cache_size);
+ if (type != STORAGE_TYPE_INTERNAL_GLOBAL_PATH) {
+ *cache_size += size;
+ LOGD("cache_size: %lld", *cache_size);
+ }
} else if (strncmp(name, "shared", strlen("shared")) == 0) {
ret = __calculate_shared_dir_size(dfd, app_root_dir,
data_size, app_size, cache_size);