xproc / 3.0-steps

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

Given that p:file-copy has an 'overwrite' option, shouldn't p:file-move? #481

Closed ndw closed 3 years ago

ndw commented 3 years ago

By my reading, p:file-move is silent about what happens in the overwrite case.

xatapult commented 3 years ago

? It says:

It is a dynamic error (err:XC0115) if the resource referenced by the target option is an existing file or other file system object.

So a move attempt to an existing file/object is an error by my reading.

ndw commented 3 years ago

I just looked right past that. Thanks, Erik.

ndw commented 3 years ago

In my defense, err:XC0158 and err:XC0115 overlap. I'm not proposing to do anything about it, but having seen the special case of 0158, I failed to notice that it would be an error (0115) in any event.