Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

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
}
 
PREVIOUS NEXT
Tagged: #directory #exists #flutter
ADD COMMENT
Topic
Name
1+3 =