Switch to side-by-side view

--- a/src/main/java/net/timbusproject/extractors/modules/tavernaextractor/utils/SSHManager.java
+++ b/src/main/java/net/timbusproject/extractors/modules/tavernaextractor/utils/SSHManager.java
@@ -136,7 +136,7 @@
         session.disconnect();
     }
 
-    public void directoryExists(Session session, Path... paths) throws SSHManagerException{
+    public void directoryExists(Session session, Path path) throws SSHManagerException{
 
         if(!session.isConnected()){
             try{
@@ -156,12 +156,10 @@
         }
 
         ChannelSftp sftpChannel = (ChannelSftp) channel;
-        for (Path path : paths) {
             try {
                     sftpChannel.lstat(path.toString()); // if dir not exists an exception is thrown
             }catch (SftpException e) {
                 throw new SSHManagerException(path.toString()+" does not exists!" +e.getLocalizedMessage());
             }
-        }
     }
   }