@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));
    }
@Test
    public void testFindFile() throws Exception {
        final CommandLineParser parser = new PosixParser();
        final CommandLine input = parser.parse(TerminalOptionsBuilder.options(), new String[]{"--delete", "rackspace://cdn.cyberduck.ch/remote"});

        assertTrue(new DeletePathFinder().find(input, TerminalAction.delete, new Path("/remote", EnumSet.of(Path.Type.file))).contains(
                new TransferItem(new Path("/remote", EnumSet.of(Path.Type.file)))
        ));
    }