asLink function
convert to a link object if necessary
Implementation
Link asLink(FileSystemEntity link) {
if (link is Link) {
return link;
} else {
return Link(link.path);
}
}
convert to a link object if necessary
Link asLink(FileSystemEntity link) {
if (link is Link) {
return link;
} else {
return Link(link.path);
}
}