Commits

Fiction City committed a119813

Added platform independant path separator

  • Participants
  • Parent commits 7341d9d

Comments (0)

Files changed (1)

File src/org/narsereg/nbnetcatupdater/NBUpdaterDownloadFile.java

     
     @Override
     public Boolean doInBackground(){
-        String pathToFile = (!nbuf.getDirectoryToDownload().equals("")) ? (nbuf.getDirectoryToDownload() + "\\") : ""; 
+        String pathToFile = (!nbuf.getDirectoryToDownload().equals("")) ? (nbuf.getDirectoryToDownload() + File.separatorChar) : ""; 
         File downloadedFile = new File(pathToFile + fileURL.substring(fileURL.lastIndexOf("/") + 1));
         try {