• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

file.copy getting corrupted files..!

Engaged ,
Jan 20, 2016 Jan 20, 2016

Copy link to clipboard

Copied

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)); 

TOPICS
Actions and scripting

Views

178

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation
Adobe