Package com.jcraft.jsch.ChannelSftp

Examples of com.jcraft.jsch.ChannelSftp.LsEntrySelector


            public List<String> ls(File file) throws IOException {
                try {

                    final List<String> names = Lists.newArrayList();

                    LsEntrySelector selector = new LsEntrySelector() {
                        @Override
                        public int select(LsEntry entry) {
                            // TODO: Filter out directory etc through
                            // attributes...
                            names.add(entry.getFilename());
View Full Code Here


            directories.add( f.getParentFile());
        }
        // look for file artifacts that end with .so, .jar, and .jnilib
        for (File d: directories) {
            final ArrayList<String> toBeDeleted = new ArrayList<String>();
            LsEntrySelector selector = new LsEntrySelector() {
                @Override
                public int select(LsEntry entry) {
                    Matcher mtc = ARTIFACT_REGEXP.matcher(entry.getFilename());
                    SftpATTRS attr = entry.getAttrs();
                    if (mtc.find() && !attr.isDir() && !attr.isLink()) {
View Full Code Here

TOP

Related Classes of com.jcraft.jsch.ChannelSftp.LsEntrySelector

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.