class DeletePathFinder implements TransferItemFinder {

    @Override
    public Set<TransferItem> find(final CommandLine input, final TerminalAction action, final Path remote) {
        if(StringUtils.containsAny(remote.getName(), '*')) {
            // Treat asterisk as wildcard
            return Collections.singleton(new TransferItem(remote.getParent()));
        }
        return Collections.singleton(new TransferItem(remote));
    }

}