Skip to content

Commit 5863219

Browse files
committed
appendName -> appendPath
1 parent db49996 commit 5863219

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

SequenceAnalysis/src/org/labkey/sequenceanalysis/pipeline/TaskFileManagerImpl.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
import org.labkey.api.util.FileType;
3333
import org.labkey.api.util.FileUtil;
3434
import org.labkey.api.util.Pair;
35+
import org.labkey.api.util.Path;
3536
import org.labkey.api.writer.PrintWriters;
3637
import org.labkey.sequenceanalysis.SequenceAnalysisManager;
3738
import org.labkey.sequenceanalysis.SequenceAnalysisSchema;
@@ -389,7 +390,7 @@ private File convertRelPathToFile(String line)
389390
File f = FileUtil.appendName(_workLocation, line);
390391
if (!f.exists())
391392
{
392-
File test = FileUtil.appendName(getSupport().getAnalysisDirectory().toNioPathForRead().toFile(), line);
393+
File test = FileUtil.appendPath(getSupport().getAnalysisDirectory().toNioPathForRead().toFile(), Path.parse(line));
393394
if (test.exists())
394395
{
395396
f = test;
@@ -985,8 +986,8 @@ private void doCopyFile(File input, Collection<RecordedAction> actions, @Nullabl
985986
return;
986987
}
987988

988-
String path = _wd.getRelativePath(FileSystemLike.wrapFile(input));
989-
File dest = FileUtil.appendName(getSupport().getAnalysisDirectory().toNioPathForRead().toFile(), path);
989+
String path = _wd.getRelativePath()FileSystemLike.wrapFile(input));
990+
File dest = FileUtil.appendPath(getSupport().getAnalysisDirectory().toNioPathForRead().toFile(), Path.parse(path));
990991
_job.getLogger().debug("to: " + dest.getPath());
991992

992993
boolean doMove = true;

0 commit comments

Comments
 (0)