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