From: Sweidan Omar Date: Mon, 6 Dec 2021 10:27:27 +0000 (+0000) Subject: git-tfs-id: [http://tfs.userrendszerhaz.hu:8080/tfs/DefaultCollection]$/MediaCube... X-Git-Url: http://git.useribm.hu/?a=commitdiff_plain;h=26948ecc1cc666eb3e95bdb5fbd75996adad1336;p=mediacube.git git-tfs-id: [tfs.userrendszerhaz.hu:8080/tfs/DefaultCollection]$/MediaCube;C32427 --- diff --git a/server/user.jobengine.osgi.commons/src/user/commons/remotestore/FtpDirectoryLister.java b/server/user.jobengine.osgi.commons/src/user/commons/remotestore/FtpDirectoryLister.java index f23cde00..11027ce9 100644 --- a/server/user.jobengine.osgi.commons/src/user/commons/remotestore/FtpDirectoryLister.java +++ b/server/user.jobengine.osgi.commons/src/user/commons/remotestore/FtpDirectoryLister.java @@ -92,7 +92,7 @@ public class FtpDirectoryLister implements IDirectoryLister { String path = storeUri.toString(true); String[] pathElements = path.split("/"); ftpClient = new FTPClient(); - //5mp + // 5mp ftpClient.setConnectTimeout(5000); int tryconnect = 3; @@ -119,7 +119,7 @@ public class FtpDirectoryLister implements IDirectoryLister { ftpClient.setFileType(FTP.BINARY_FILE_TYPE); ftpClient.enterLocalPassiveMode(); - //210510 ha tud, akkor menjen a gyoker konyvtarba ld. AMC ISILON valtas + // 210510 ha tud, akkor menjen a gyoker konyvtarba ld. AMC ISILON valtas ftpClient.changeWorkingDirectory("/"); if (pathElements.length > 1) { @@ -154,7 +154,6 @@ public class FtpDirectoryLister implements IDirectoryLister { @Override public void ensureOutputDirectory() { - // TODO Auto-generated method stub } @@ -178,7 +177,7 @@ public class FtpDirectoryLister implements IDirectoryLister { FTPFile[] files = ftpClient.listFiles(fileName); if (files != null && files.length == 1) result = toRemoteFile(files[0]); - // cleanUp(); + // cleanUp(); } if (result == null) throw new FileNotFoundException(storeUri.toString() + "/" + fileName); @@ -190,7 +189,7 @@ public class FtpDirectoryLister implements IDirectoryLister { RemoteFile result = null; connect(); if (ftpClient != null) { - //TODO eleg a try? + // TODO eleg a try? try (InputStream input = ftpClient.retrieveFileStream(name)) { checkCompletePending = true; if (input != null) { @@ -250,7 +249,7 @@ public class FtpDirectoryLister implements IDirectoryLister { RemoteFile file = createRemoteFile(ftpFile); result.add(file); } - // cleanUp(); + // cleanUp(); } return result; } @@ -284,7 +283,6 @@ public class FtpDirectoryLister implements IDirectoryLister { @Override public void list(String wildCard, IRemoteFileListCallback callback) throws Exception { - // TODO Auto-generated method stub }