diff --git a/src/main/java/zander/library/RemoteStore.java b/src/main/java/zander/library/RemoteStore.java index 156ee12..01bd132 100644 --- a/src/main/java/zander/library/RemoteStore.java +++ b/src/main/java/zander/library/RemoteStore.java @@ -49,7 +49,8 @@ public class RemoteStore { } else { throw new ProtocolException("unknown protocol: '" + url.getScheme() + "'"); } - ftp.addProtocolCommandListener(new PrintCommandListener(System.out, true)); + // Uncomment this to print all FTP commands + // ftp.addProtocolCommandListener(new PrintCommandListener(System.out, true)); ftp.setListHiddenFiles(true); this.secrets = secrets; } @@ -238,11 +239,7 @@ public class RemoteStore { } String name = getFileName(path); FTPFile[] files = ftp.listFiles(pp); - System.out.println("STAT " + name + " in " + pp); for (FTPFile f : files) { - System.out.println( - (f.isDirectory() ? "D " : "F ") + - f.getName()); if (f.getName().equals(name)) { file.set(f); }