io/check library
Functions
-
checkDirectoryExists(
String path, [String? name]) → Directory -
Check if the Directory at
path
exists, if not throw an ArgumentError. -
checkFileExists(
String path, [String? name]) → File -
Check if the File at
path
exists, if not throw an ArgumentError. -
checkLeadsToFiletype(
String path, FileSystemEntityType type) → void -
Check that
path
leads to a FileSystemEntity oftype
.