class SFTPSymlinkFeature implements Symlink {

    @Override
    public void symlink(final Path file, String target) throws BackgroundException {
        try {
            session.sftp().symlink(target, file.getAbsolute());
        }
        catch(IOException e) {
            throw new SFTPExceptionMappingService().map("Cannot create file {0}", e, file);
        }
    }

    public  SFTPSymlinkFeature(final SFTPSession session);

}