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