pxf:delete doesn't delete recursively #26

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

Comments

Projects
None yet
2 participants
@mkraetke

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

This comment has been minimized.

Show comment
Hide comment
@ndw

ndw Jan 28, 2012

Owner

Fixed for 1.0.2, I believe.

Owner

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