0 Replies Latest reply on Jan 20, 2016 8:40 PM by natrev

    file.copy getting corrupted files..!

    natrev Level 3

      Hi Everyone!,

       

      I have copied one file from server to Desktop using the file.copy method.

       

      If I copy PSD,TIF files format from server its working perfectly.

       

      If I copy XLS,PDF,INDD files format from server its getting incomplete files.


      Please suggest any other alternate way to avoid this problem.

       

      Please help me out this problem...

       

      -yajiv

       

      var file = File(sourceFolder + "/" + fileName);  
      if(!file.exists) continue;  
      var outputFolder = Folder("~/Desktop/" + folderName);  
      if(!outputFolder.exists) outputFolder.create();  
      if(file.copy(outputFolder + "/" + fileName));