clearDir static method
Implementation
static Future<bool> clearDir([String path = '']) async {
try {
final dir = Directory(path);
if (dir.existsSync()) await dir.delete(recursive: true);
return true;
} catch (e) {
Log.e('dir_cache_clear_error:', error: e);
}
return false;
}