Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pxf:delete fails for non-existant directories even with fail-on-error #309

Closed
FigmentEngine opened this issue Jun 17, 2020 · 0 comments
Closed

Comments

@FigmentEngine
Copy link

FigmentEngine commented Jun 17, 2020

When run with a directory that does not exist, this fails.
I am guessing that "fail-on-error" only handles failure to delete folder, not that folder does not exist.

command
$ java -Xmx4096M -classpath ../saxon/saxon9ee.jar:./xmlcalabash-1.2.1-99.jar com.xmlcalabash.drivers.Main --saxon-configuration ../saxon/sax.conf ../../content/shells/process/build.xpl root=/mnt/w/volatile/hydrogen

result
ERROR: err:XC0012:XC0012 ERROR: It is a dynamic error if the contents of the directory path are not available to the step due to access restrictions in the environment in which the pipeline is run.

source:
`<p:declare-step
xmlns:p="http://www.w3.org/ns/xproc"
xmlns:c="http://www.w3.org/ns/xproc-step"
xmlns:pxf="http://exproc.org/proposed/steps/file"
version="3.0">

<p:import href="http://xmlcalabash.com/extension/steps/library-1.0.xpl"/>

<p:option name="path" />

<pxf:delete>
	<p:with-option name="href" select="$path" />
	<p:with-option name="recursive" select="true()" />
	<p:with-option name="fail-on-error" select="false()" />
</pxf:delete>

</p:declare-step>`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants