Remove debug statements

This commit is contained in:
Alexander Rosenberg 2024-10-28 13:00:13 -07:00
parent 67ad3bf024
commit 92b722b141
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

View File

@ -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);
}