Ask Your Question

Copy directory without overwrite existed files

asked 2017-08-23 04:38:18 -0600

Sraw gravatar image

In one word, how could I copy a directory without overwrite existed files in target directory if target directory exists?

set replace=false seems doesn't copy at all if target directory exists.

So It seems a question about recursively set replace for every file in source directory?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-08-24 07:50:34 -0600

Emerson Prado gravatar image

I presume you're managing the directory through the file type with recursing. This way, all you have to do is to set replace => false for the directory resource. Check out the docs on the parameter.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2017-08-23 04:38:18 -0600

Seen: 106 times

Last updated: Aug 24 '17