getLink method
Returns link linked to current file system.
path
- path to the link. if path
starts with '/'
then it will be treated as absolute path.
target
- target of the link.
Implementation
FtpLink getLink(String path, String target) {
var link = FtpLink(
path: path,
client: this,
linkTarget: '',
);
if (!link.isAbsolute) {
final temp = _fileSystem.currentDirectory.getChildFile(path);
link = FtpLink(
path: temp.path,
client: this,
linkTarget: target,
);
}
return link;
}