in reply to Re^2: Seeking help for copying recursive folders having some folder/file names in Chinese or japanese
in thread Seeking help for copying recursive folders having some folder/file names in Chinese or japanese
but it do have an optimization for not copying the empty folders.
It's not an optimisation as such; rather, just a side-effect of processing the tree the 'unix way'. Directories only get created if they do not exist when a file is to be copied into them.
There is no architected API mechanism for changing this behaviour; nor can I see any easy way it could be retro-fitted or monkey patched to do so.
My alternative would be to simply shell out to xcopy: system qq[ xcopy /E/I/C/O srcpath\\* destpath\\ ];.
(You also might want to consider /G /H /R & /U. (See the help.))
As it's supplied with the OS, it will be able to copy any files or directories that you've already created. It is also significantly quicker on deep trees.
|
|---|