Skip to content
Snippets Groups Projects
Commit 4b9180be authored by tjc's avatar tjc
Browse files

fix for creating running directory

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@6278 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent e2af62d1
No related branches found
No related tags found
No related merge requests found
...@@ -331,31 +331,35 @@ public class SshPSUClient extends Thread ...@@ -331,31 +331,35 @@ public class SshPSUClient extends Thread
if(index > -1) if(index > -1)
filename = filename.substring(index+1); filename = filename.substring(index+1);
try if(i == 0)
{
if(!keep)
wdir = wdir+"/"+user;
sftp.mkdir(wdir);
wdir = wdir+"/"+program+"/";
sftp.mkdir(wdir);
// sftp.put(filepath, wdir+filename);
}
catch(SshException sshe)
{ {
logger4j.debug("runBlastOrFasta()"); try
if(System.getProperty("debug") != null)
{ {
sshe.printStackTrace(); if(!keep)
wdir = wdir + "/" + user;
sftp.mkdir(wdir);
wdir = wdir + "/" + program + "/";
sftp.mkdir(wdir);
logger4j.debug("mkdir() " + wdir);
// sftp.put(filepath, wdir+filename);
}
catch(SshException sshe)
{
logger4j.debug("runBlastOrFasta()");
if(System.getProperty("debug") != null)
{
sshe.printStackTrace();
}
rescue();
sftp = getSftpClient();
if(!wdir.endsWith(program + "/"))
wdir = wdir + "/" + program + "/";
}
catch(IOException ioe)
{
// directory already created
} }
rescue();
sftp = getSftpClient();
if(!wdir.endsWith(program+"/"))
wdir = wdir+"/"+program+"/";
}
catch(IOException ioe)
{
// directory already created
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment