Fixed Ftp file path

This commit is contained in:
Ziver Koc 2014-08-04 15:39:55 +02:00
parent 580f4fdc3d
commit bb45d90fae

View file

@ -38,7 +38,7 @@ public class UeBehaviourFtpDownload extends UeBehaviourFileDownload {
url += "@"; url += "@";
} }
url += host; url += host;
if(filePath != null && filePath.isEmpty()){ if(filePath != null && !filePath.isEmpty()){
if(!filePath.startsWith("/")) if(!filePath.startsWith("/"))
filePath = "/"+filePath; filePath = "/"+filePath;
url += filePath; url += filePath;