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 doesn't delete recursively #26

Closed
mkraetke opened this issue Jan 25, 2012 · 1 comment
Closed

pxf:delete doesn't delete recursively #26

mkraetke opened this issue Jan 25, 2012 · 1 comment

Comments

@mkraetke
Copy link

@mkraetke mkraetke commented Jan 25, 2012

It seems that there is an issue with the pxf:delete step from the exproc proposed extensions. The step worked for me only for directories without subfolders. Here is a my error message:

25.01.2012 18:08:34 com.xmlcalabash.util.DefaultXProcMessageListener error
SCHWERWIEGEND: base/testdel.xpl:16:69:Delete failed for: test1
25.01.2012 18:08:34 com.xmlcalabash.drivers.Main error
SCHWERWIEGEND: com.xmlcalabash.core.XProcException: Delete failed for: test1

My pipeline is as follows:

<?xml version="1.0" encoding="UTF-8"?>
<p:declare-step 
    xmlns:p="http://www.w3.org/ns/xproc"
    xmlns:pxf="http://exproc.org/proposed/steps/file"
    xmlns:c="http://www.w3.org/ns/xproc-step" version="1.0">

    <p:input port="source">
        <p:empty/>
    </p:input>
    <p:output port="result"/>

    <p:import href="install-lib.xpl"/>

    <pxf:mkdir href="test1/test2"/>

    <pxf:delete href="test1" recursive="true" fail-on-error="true"/>

    <p:identity>
        <p:input port="source">
            <p:inline>
                <c:result>something</c:result>
            </p:inline>
        </p:input>
    </p:identity>
</p:declare-step>

Could anybody reproduce this issue?

@ndw
Copy link
Owner

@ndw ndw commented Jan 28, 2012

Fixed for 1.0.2, I believe.

@ndw ndw closed this Jan 28, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.