Package org.apache.oodt.cas.protocol

Examples of org.apache.oodt.cas.protocol.Protocol.ls()


  @Override
  public void execute(ActionMessagePrinter printer) throws CmdLineActionException {
    try {
      Protocol protocol = getProtocolManager().getProtocolBySite(
          getSite(), getAuthentication(), verifierFactory.newInstance());
      List<ProtocolFile> files = protocol.ls();
      for (ProtocolFile file : files) {
        if (file.isDir() && Pattern.matches(directoryRegex, file.getName())) {
          try {
            protocol.delete(file);
            printer.println("Success: " + file.getPath());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.