Jeśli katalog istnieje trzepotanie

String path = 'your/path';
bool directoryExists = await Directory(path).exists();
bool fileExists = await File(path).exists();
if(directoryExists || fileExists) {
	// do stuff
}
loonix