method
isDirectorySync

bool isDirectorySync(
String path
)

Synchronously checks if typeSync(path) returns FileSystemEntityType.DIRECTORY.