utils/entity library

Functions

asDirectory(FileSystemEntity? dir) Directory
convert to a directory object if necessary
asFile(FileSystemEntity file) File
convert to a file object if necessary
convert to a link object if necessary
childDirectory(Directory dir, String sub) Directory
get a child as a directory
childFile(Directory dir, String sub) File
get a child as a file
get a child as a link
entityExists(FileSystemEntity entity) Future<bool>
Returns true is an entity exists.