Answers for "if directory exists flutter"

1

if directory exists flutter

String path = 'your/path';
bool directoryExists = await Directory(path).exists();
bool fileExists = await File(path).exists();
if(directoryExists || fileExists) {
	// do stuff
}
Posted by: Guest on May-18-2021

Code answers related to "if directory exists flutter"

Code answers related to "Dart"

Browse Popular Code Answers by Language