xproc / 3.0-steps

Repository for change requests to the standard step library and for official extension steps
10 stars 7 forks source link

In p:file-copy, does err:XC0157 apply during a recursive copy? #478

Closed ndw closed 3 years ago

ndw commented 3 years ago

Suppose /tmp/x/copytest/a is a directory, but /tmp/x/result/copytest/a is a file. This request:

<p:file-copy href="/tmp/x/copytest/a" target="/tmp/x/result/copytest/a"/>

raises err:XC0157 (I believe). But does this request?

<p:file-copy href="/tmp/x/copytest" target="/tmp/x/result"/>

I assume not. I assume that once you've started a recursive copy and you're doing overwrites, you just overwrite it.

xml-project commented 3 years ago

I do not know, whether this is helpful, but the behaviour you described is exactly what I do.