Cfdirectory action="copy"

I’m trying to copy a large amount of files from one location to another.
This is a daily scheduled task, and I don’t want to have to overwrite all
the files every time (I’m only interested in the new ones).

Ideally, I want cfdirectory action=“copy” recurse=“true”
nameconflict=“skip”, but that doesn’t seem to be an option, even though it
appeared to be in the discussion
here: https://issues.jboss.org/browse/RAILO-2193

Am I missing something? The docs seems a bit sparse on this particular
topic.

Thanks,

Tom.

Not sure about the cfdirectory question, but if the only requirement is to
copy files from one location to another, why use CF and a scheduled task?
Tools like rsync make this easy and fail proof.

Hope it helps.
JeanOn Thu, Jan 7, 2016 at 10:49 AM, Tom Miller <@Tom_Miller> wrote:

I’m trying to copy a large amount of files from one location to another.
This is a daily scheduled task, and I don’t want to have to overwrite all
the files every time (I’m only interested in the new ones).

Ideally, I want cfdirectory action=“copy” recurse=“true”
nameconflict=“skip”, but that doesn’t seem to be an option, even though it
appeared to be in the discussion here:
https://issues.jboss.org/browse/RAILO-2193

Am I missing something? The docs seems a bit sparse on this particular
topic.

Thanks,

Tom.


Love Lucee? Become a supporter and be part of the Lucee project today! -
http://lucee.org/supporters/become-a-supporter.html

You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/fd78d0c6-186c-473e-bdae-018824cae5dd%40googlegroups.com
https://groups.google.com/d/msgid/lucee/fd78d0c6-186c-473e-bdae-018824cae5dd%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

Tom,

Which part doesn’t work? The “skip”? Do you get an error or it just
goes to copy the directory?

Igal Sapir
Lucee Core Developer
Lucee.org http://lucee.org/On 1/7/2016 12:47 PM, Tom Miller wrote:

I’d normally agree - but this is an s3 sync within an AMI that I
cannot spec. My only option is a cfml script as that’s all I know will
be running on the server…

On Thursday, January 7, 2016 at 8:42:46 PM UTC, Andrew Dixon wrote:

With Jean on this one, right tool for right job and I don't think
Lucee (or CFML in general) is the right tool.

Kind regards,

Andrew
about.me <http://about.me/andrew_dixon> - mso
<http://www.mso.net> - Lucee Association Member <http://lucee.org>

On 7 January 2016 at 19:27, Jean Moniatte <je...@ugal.com <javascript:>> wrote:

    Not sure about the cfdirectory question, but if the only
    requirement is to copy files from one location to another, why
    use CF and a scheduled task? Tools like rsync make this easy
    and fail proof.

    Hope it helps.
    Jean

    On Thu, Jan 7, 2016 at 10:49 AM, Tom Miller <tom.m...@ebiz.co.uk <javascript:>> wrote:

        I'm trying to copy a large amount of files from one
        location to another. This is a daily scheduled task, and I
        don't want to have to overwrite all the files every time
        (I'm only interested in the new ones).

        Ideally, I want cfdirectory action="copy" recurse="true"
        nameconflict="skip", but that doesn't seem to be an
        option, even though it appeared to be in the discussion
        here: https://issues.jboss.org/browse/RAILO-2193
        <https://issues.jboss.org/browse/RAILO-2193>

        Am I missing something? The docs seems a bit sparse on
        this particular topic.

        Thanks,

        Tom.

        -- 
        Love Lucee? Become a supporter and be part of the Lucee
        project today! -
        http://lucee.org/supporters/become-a-supporter.html
        <http://lucee.org/supporters/become-a-supporter.html>
        ---
        You received this message because you are subscribed to
        the Google Groups "Lucee" group.
        To unsubscribe from this group and stop receiving emails
        from it, send an email to lucee+un...@googlegroups.com
        <javascript:>.
        To post to this group, send email to
        lu...@googlegroups.com <javascript:>.
        To view this discussion on the web visit
        https://groups.google.com/d/msgid/lucee/fd78d0c6-186c-473e-bdae-018824cae5dd%40googlegroups.com
        <https://groups.google.com/d/msgid/lucee/fd78d0c6-186c-473e-bdae-018824cae5dd%40googlegroups.com?utm_medium=email&utm_source=footer>.
        For more options, visit https://groups.google.com/d/optout
        <https://groups.google.com/d/optout>.


    -- 
    Love Lucee? Become a supporter and be part of the Lucee
    project today! -
    http://lucee.org/supporters/become-a-supporter.html
    <http://lucee.org/supporters/become-a-supporter.html>
    ---
    You received this message because you are subscribed to the
    Google Groups "Lucee" group.
    To unsubscribe from this group and stop receiving emails from
    it, send an email to lucee+un...@googlegroups.com <javascript:>.
    To post to this group, send email to lu...@googlegroups.com
    <javascript:>.
    To view this discussion on the web visit
    https://groups.google.com/d/msgid/lucee/CAG-7QUsuvx0x8nXnwWkEXPMt%2Bw3o0p7OQYxLfYO8-CQyun8S9g%40mail.gmail.com
    <https://groups.google.com/d/msgid/lucee/CAG-7QUsuvx0x8nXnwWkEXPMt%2Bw3o0p7OQYxLfYO8-CQyun8S9g%40mail.gmail.com?utm_medium=email&utm_source=footer>.


    For more options, visit https://groups.google.com/d/optout
    <https://groups.google.com/d/optout>.


Love Lucee? Become a supporter and be part of the Lucee project today!


You received this message because you are subscribed to the Google
Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to lucee+unsubscribe@googlegroups.com
mailto:lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com
mailto:lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/60fb10cf-7557-43ee-a113-c8b8e503a2c4%40googlegroups.com
https://groups.google.com/d/msgid/lucee/60fb10cf-7557-43ee-a113-c8b8e503a2c4%40googlegroups.com?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout.

What version are you running? Can you please copy and paste the exact
message that you see?

This should be implemented in Lucee 4.5

Igal Sapir
Lucee Core Developer
Lucee.org http://lucee.org/On 1/7/2016 1:02 PM, Tom Miller wrote:

Just says “skip” is not a valid attribute. Attributes are “overwrite
(merge), error”

On Thursday, January 7, 2016 at 8:50:27 PM UTC, Igal wrote:

Tom,

Which part doesn't work?  The "skip"?  Do you get an error or it
just goes to copy the directory?

Igal Sapir
Lucee Core Developer
Lucee.org <http://lucee.org/>

On 1/7/2016 12:47 PM, Tom Miller wrote:
I'd normally agree - but this is an s3 sync within an AMI that I
cannot spec. My only option is a cfml script as that's all I know
will be running on the server...

On Thursday, January 7, 2016 at 8:42:46 PM UTC, Andrew Dixon wrote:

    With Jean on this one, right tool for right job and I don't
    think Lucee (or CFML in general) is the right tool.

    Kind regards,

    Andrew
    about.me <http://about.me/andrew_dixon> - mso
    <http://www.mso.net> - Lucee Association Member
    <http://lucee.org>

    On 7 January 2016 at 19:27, Jean Moniatte <je...@ugal.com> wrote:

        Not sure about the cfdirectory question, but if the only
        requirement is to copy files from one location to
        another, why use CF and a scheduled task? Tools like
        rsync make this easy and fail proof.

        Hope it helps.
        Jean

        On Thu, Jan 7, 2016 at 10:49 AM, Tom Miller <tom.m...@ebiz.co.uk> wrote:

            I'm trying to copy a large amount of files from one
            location to another. This is a daily scheduled task,
            and I don't want to have to overwrite all the files
            every time (I'm only interested in the new ones).

            Ideally, I want cfdirectory action="copy"
            recurse="true" nameconflict="skip", but that doesn't
            seem to be an option, even though it appeared to be
            in the discussion here:
            https://issues.jboss.org/browse/RAILO-2193

            Am I missing something? The docs seems a bit sparse
            on this particular topic.

            Thanks,

            Tom.

            -- 
            Love Lucee? Become a supporter and be part of the
            Lucee project today! -
            http://lucee.org/supporters/become-a-supporter.html
            ---
            You received this message because you are subscribed
            to the Google Groups "Lucee" group.
            To unsubscribe from this group and stop receiving
            emails from it, send an email to
            lucee+un...@googlegroups.com.
            To post to this group, send email to
            lu...@googlegroups.com.
            To view this discussion on the web visit
            https://groups.google.com/d/msgid/lucee/fd78d0c6-186c-473e-bdae-018824cae5dd%40googlegroups.com.
            For more options, visit
            https://groups.google.com/d/optout.


        -- 
        Love Lucee? Become a supporter and be part of the Lucee
        project today! -
        http://lucee.org/supporters/become-a-supporter.html
        <http://lucee.org/supporters/become-a-supporter.html>
        ---
        You received this message because you are subscribed to
        the Google Groups "Lucee" group.
        To unsubscribe from this group and stop receiving emails
        from it, send an email to lucee+un...@googlegroups.com.
        To post to this group, send email to lu...@googlegroups.com.
        To view this discussion on the web visit
        https://groups.google.com/d/msgid/lucee/CAG-7QUsuvx0x8nXnwWkEXPMt%2Bw3o0p7OQYxLfYO8-CQyun8S9g%40mail.gmail.com.


        For more options, visit
        https://groups.google.com/d/optout
        <https://groups.google.com/d/optout>.


-- 
Love Lucee? Become a supporter and be part of the Lucee project
today! - http://lucee.org/supporters/become-a-supporter.html
<http://lucee.org/supporters/become-a-supporter.html>
---
You received this message because you are subscribed to the
Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to lucee+un...@googlegroups.com <javascript:>.
To post to this group, send email to lu...@googlegroups.com
<javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/60fb10cf-7557-43ee-a113-c8b8e503a2c4%40googlegroups.com
<https://groups.google.com/d/msgid/lucee/60fb10cf-7557-43ee-a113-c8b8e503a2c4%40googlegroups.com>.
For more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.


Love Lucee? Become a supporter and be part of the Lucee project today!


You received this message because you are subscribed to the Google
Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to lucee+unsubscribe@googlegroups.com
mailto:lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com
mailto:lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/64be7c6f-4874-4550-8f11-0900e5c3be9a%40googlegroups.com
https://groups.google.com/d/msgid/lucee/64be7c6f-4874-4550-8f11-0900e5c3be9a%40googlegroups.com?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout.

Just says “skip” is not a valid attribute. Attributes are "overwrite
(merge), error"On Thursday, January 7, 2016 at 8:50:27 PM UTC, Igal wrote:

Tom,

Which part doesn’t work? The “skip”? Do you get an error or it just goes
to copy the directory?

Igal Sapir
Lucee Core Developer
Lucee.org http://lucee.org/
On 1/7/2016 12:47 PM, Tom Miller wrote:

I’d normally agree - but this is an s3 sync within an AMI that I cannot
spec. My only option is a cfml script as that’s all I know will be running
on the server…

On Thursday, January 7, 2016 at 8:42:46 PM UTC, Andrew Dixon wrote:

With Jean on this one, right tool for right job and I don’t think Lucee
(or CFML in general) is the right tool.

Kind regards,

Andrew
about.me http://about.me/andrew_dixon - mso http://www.mso.net - Lucee
Association Member http://lucee.org

On 7 January 2016 at 19:27, Jean Moniatte je...@ugal.com wrote:

Not sure about the cfdirectory question, but if the only requirement is
to copy files from one location to another, why use CF and a scheduled
task? Tools like rsync make this easy and fail proof.

Hope it helps.
Jean

On Thu, Jan 7, 2016 at 10:49 AM, Tom Miller tom.m...@ebiz.co.uk wrote:

I’m trying to copy a large amount of files from one location to
another. This is a daily scheduled task, and I don’t want to have to
overwrite all the files every time (I’m only interested in the new ones).

Ideally, I want cfdirectory action=“copy” recurse=“true”
nameconflict=“skip”, but that doesn’t seem to be an option, even though it
appeared to be in the discussion here:
https://issues.jboss.org/browse/RAILO-2193https://issues.jboss
.org/browse/RAILO-2193

Am I missing something? The docs seems a bit sparse on this particular
topic.

Thanks,

Tom.


Love Lucee? Become a supporter and be part of the Lucee project today!


You received this message because you are subscribed to the Google
Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/fd78d0c6-186c-473e-bdae-018824cae5dd%40googlegroups.com?utm_medium=email&utm_source=footer
https://groups.google.com/d/
msgid/lucee/fd78d0c6-186c-473e-bdae-018824cae5dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout
https://groups.google.com/d/optout.


Love Lucee? Become a supporter and be part of the Lucee project today! -
http://lucee.org/supporters/become-a-supporter.html

You received this message because you are subscribed to the Google
Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAG-7QUsuvx0x8nXnwWkEXPMt%2Bw3o0p7OQYxLfYO8-CQyun8S9g%40mail.gmail.com?utm_medium=email&utm_source=footer
https://groups.google.com/d/msgid/lucee/CAG-7QUsuvx0x8nXnwWkEXPMt%2Bw3o0p7OQYxLfYO8-CQyun8S9g%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.


Love Lucee? Become a supporter and be part of the Lucee project today! -
http://lucee.org/supporters/become-a-supporter.html


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+un...@googlegroups.com <javascript:>.
To post to this group, send email to lu...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/60fb10cf-7557-43ee-a113-c8b8e503a2c4%40googlegroups.com?utm_medium=email&utm_source=footer
https://groups.google.com/d/msgid/lucee/60fb10cf-7557-43ee-a113-c8b8e503a2c4%40googlegroups.com
.
For more options, visit https://groups.google.com/d/optout.

doco says skip is for ‘create’
<cfdirectory> :: Lucee Documentation

nameconflict
(string, optional)
https://github.com/lucee/lucee-docs/edit/master/docs/03.reference/02.tags/directory/_attributes/nameconflict.md

When used with action=“copy” the possible values are: [Overwrite]|Error.
When used with action=“create” the possible values are: [Error]|Skip.
Ignored for all other actions.

​no mention of merge

​On 8 January 2016 at 07:34, Igal @ Lucee.org <@Igal> wrote:

What version are you running? Can you please copy and paste the exact
message that you see?

This should be implemented in Lucee 4.5

Lucee4/Directory.java at master · lucee/Lucee4 · GitHub

Igal Sapir
Lucee Core Developer
Lucee.org http://lucee.org/
On 1/7/2016 1:02 PM, Tom Miller wrote:

Just says “skip” is not a valid attribute. Attributes are “overwrite
(merge), error”

On Thursday, January 7, 2016 at 8:50:27 PM UTC, Igal wrote:

Tom,

Which part doesn’t work? The “skip”? Do you get an error or it just
goes to copy the directory?

Igal Sapir
Lucee Core Developer
Lucee.org http://lucee.org/
On 1/7/2016 12:47 PM, Tom Miller wrote:

I’d normally agree - but this is an s3 sync within an AMI that I cannot
spec. My only option is a cfml script as that’s all I know will be running
on the server…

On Thursday, January 7, 2016 at 8:42:46 PM UTC, Andrew Dixon wrote:

With Jean on this one, right tool for right job and I don’t think Lucee
(or CFML in general) is the right tool.

Kind regards,

Andrew
about.me http://about.me/andrew_dixon - mso http://www.mso.net - Lucee
Association Member http://lucee.org

On 7 January 2016 at 19:27, Jean Moniatte je...@ugal.com wrote:

Not sure about the cfdirectory question, but if the only requirement is
to copy files from one location to another, why use CF and a scheduled
task? Tools like rsync make this easy and fail proof.

Hope it helps.
Jean

On Thu, Jan 7, 2016 at 10:49 AM, Tom Miller tom.m...@ebiz.co.uk wrote:

I’m trying to copy a large amount of files from one location to
another. This is a daily scheduled task, and I don’t want to have to
overwrite all the files every time (I’m only interested in the new ones).

Ideally, I want cfdirectory action=“copy” recurse=“true”
nameconflict=“skip”, but that doesn’t seem to be an option, even though it
appeared to be in the discussion here: https://issues.jboss
https://issues.jboss.org/browse/RAILO-2193

Am I missing something? The docs seems a bit sparse on this particular
topic.

Thanks,

Tom.


Love Lucee? Become a supporter and be part of the Lucee project today!


You received this message because you are subscribed to the Google
Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/
msgid/lucee/fd78d0c6-186c-473e-bdae-018824cae5dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/
https://groups.google.com/d/optout.


Love Lucee? Become a supporter and be part of the Lucee project today!


You received this message because you are subscribed to the Google
Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/
https://groups.google.com/d/
msgid/lucee/CAG-7QUsuvx0x8nXnwWkEXPMt%2Bw3o0p7OQYxLfYO8-CQyun8S9g%
40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout
https://groups.google.com/d/optout.


Love Lucee? Become a supporter and be part of the Lucee project today! -
http://lucee.org/supporters/become-a-supporter.html


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/60fb10cf-7557-43ee-a113-c8b8e503a2c4%40googlegroups.com
https://groups.google.com/d/
msgid/lucee/60fb10cf-7557-43ee-a113-c8b8e503a2c4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Love Lucee? Become a supporter and be part of the Lucee project today! -
http://lucee.org/supporters/become-a-supporter.html


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/64be7c6f-4874-4550-8f11-0900e5c3be9a%40googlegroups.com?utm_medium=email&utm_source=footer
https://groups.google.com/d/msgid/lucee/64be7c6f-4874-4550-8f11-0900e5c3be9a%40googlegroups.com
.
For more options, visit https://groups.google.com/d/optout.


Love Lucee? Become a supporter and be part of the Lucee project today! -
http://lucee.org/supporters/become-a-supporter.html

You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/568EF60C.2050505%40lucee.org
https://groups.google.com/d/msgid/lucee/568EF60C.2050505%40lucee.org?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

AJ Mercer
<webonix:net strength=“Industrial” /> http://webonix.net | <webonix:org
community=“Open” /> http://webonix.org
http://twitter.com/webonix