i am trying to get the packages folder copied… i have set it to override…
But i am getting error message :
Warning: FileSystem.CopyFile operation failed.
The file ‘C:/Users/langa1/AppData/Roaming/dynamo/Dynamo Revit/2.10/DynamoSettings.xml’ already exists.
but even if i have set the copy files not to overwrite i get this message
Also get the message file is in use.
But when i get one of these messages none of the files is copied.
I found a python script
import shutil original = IN target = IN List =  for o, t in zip(original,target): try: shutil.copyfile(o, t) List.append(True) except: List.append(False) OUT = List
but that gives the same result all not copied…
ideally i want the files to overwrite and if for some reason (like file is being used) can’t be copied that i get the false or true so i can specify what files are not copied.
copy_directory.dyn (69.7 KB)