Re: Can I prevent p:store from overwriting files?

Of course you can do this, too. (Who said TIMTOWTDI [1] doesn’t apply to 
XProc?) With p:directory-list, you need to use try/catch if the 
directory that your file is expected to reside in is not guaranteed to 
exist. With pxf:info, you can use the fail-on-error="false" option, but 
then you have to call p:count in order to check whether it produced a 
result. (That is, calling p:count is just one way to check it.)

[1] https://en.wikipedia.org/wiki/There%27s_more_than_one_way_to_do_it

On 6/15/17 3:18 AM, Conal Tuohy wrote:
> p:directory-list can tell you whether or not a file exists
> 
> On 15 June 2017 at 03:40, Hans Hübner <hans.huebner@lambdawerk.com 
> <mailto:hans.huebner@lambdawerk.com>> wrote:

Received on Thursday, 15 June 2017 06:55:15 UTC