Copy files

dynamo

#1

I am trying to copy some files from one directory to a directory i just created with dynamo.
But i can’t figure it out.


#2

If you’re happy using Python, there’s a very easy-to-use library you can import called shutil. This comes with the Dynamo / IronPython install. It has a few functions copy/copy2 which can be used to auto-copy files from one directory to another.


#3

Maybee a maped dropbox folder as target will not work,
try with a simple folder on your c-drive, to see if it works


#4

It creates the folders on dropbox fine, and i really need it on this dropbox folder…but it is just a local drive, so that shouldn’t be the issue…


#5

Don’t really want to add even more…this node or the file.copy node should be possible and workable


#6

The OOTB node Directory.Copy should work.


#7

but i don’t want to copy a whole directory only a few files…
can’t get the file.copy to work either…


#8

Arno, it really does not work:

If you look at the “copy node” you will see this:


#9

i replaced it with the passthrough node…but then it still doesn’t work


#10

Which package is this out of?


#11

copy file list to new directory is from Bakery… but i would be happy of file.copy worked with multiple files as well.


#12

Thought so.

One thing to try: uninstall and reinstall Bakery and all of its dependencies (basically every package out there). This may resolve the missing nodes due to the various dependencies.

If that doesn’t work I’ll see about making an OOTB or design script solution later today (have a big webinar at 11 and a snowstorm here in boston so it may be a bit).


#13

Have it working :wink:

don’t know exactly why and how that -folder + “\”+ name- works but it does

thanks everybody