You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Peter Sparkes <pe...@didm.co.uk> on 2012/12/22 16:43:58 UTC

Delete, move or rename files

Hi,

Is there anyway of

 1. deleting,
 2. moving
 3. renaming

xml files on the server.

Thanks

Peter


RE: Delete, move or rename files

Posted by Robby Pelssers <ro...@nxp.com>.
Hi Peter,

I don’t have any hands-on experience with 2.1.x anymore.   But did you already check this page? http://cocoon.apache.org/2.1/userdocs/concepts/actions.html

And the best way to learn usage would really be to download the Cocoon sources and check how other actions work.

Kind regards,
Robby

From: Peter Sparkes [mailto:peter@didm.co.uk]
Sent: Sunday, December 23, 2012 9:42 AM
To: users@cocoon.apache.org
Subject: Re: Delete, move or rename files

Thanks Robby,

On your suggestion I have tried to write an action to delete a file with out success.

Please has anyone got an example.

Peter

On 22/12/2012 15:47, Robby Pelssers wrote:
Not sure how you envisualize that?  Of course that is possible.  Any application can access the filesystem it is installed on.  So you easily write code that will do any of the below operations. But I guess your question is if Cocoon does this magically for you?  No.  It might have components like a directory generator to easily get information about any folder. But you will still need to write actions that can handle delete / move / rename events.

Robby

From: Peter Sparkes [mailto:peter@didm.co.uk]
Sent: Saturday, December 22, 2012 4:44 PM
To: users@cocoon.apache.org<ma...@cocoon.apache.org>
Subject: Delete, move or rename files

Hi,

Is there anyway of

  1.  deleting,
  2.  moving
  3.  renaming

xml files on the server.

Thanks

Peter


Re: Delete, move or rename files

Posted by Peter Sparkes <pe...@didm.co.uk>.
Thanks Robby,

On your suggestion I have tried to write an action to delete a file with out success.

Please has anyone got an example.

Peter

On 22/12/2012 15:47, Robby Pelssers wrote:
>
> Not sure how you envisualize that?  Of course that is possible. Any application can access the 
> filesystem it is installed on.  So you easily write code that will do any of the below operations. 
> But I guess your question is if Cocoon does this magically for you?  No.  It might have components 
> like a directory generator to easily get information about any folder. But you will still need to 
> write actions that can handle delete / move / rename events.
>
> Robby
>
> *From:*Peter Sparkes [mailto:peter@didm.co.uk]
> *Sent:* Saturday, December 22, 2012 4:44 PM
> *To:* users@cocoon.apache.org
> *Subject:* Delete, move or rename files
>
> Hi,
>
> Is there anyway of
>
>  1. deleting,
>  2. moving
>  3. renaming
>
> xml files on the server.
>
> Thanks
>
> Peter
>


RE: Delete, move or rename files

Posted by Robby Pelssers <ro...@nxp.com>.
Not sure how you envisualize that?  Of course that is possible.  Any application can access the filesystem it is installed on.  So you easily write code that will do any of the below operations. But I guess your question is if Cocoon does this magically for you?  No.  It might have components like a directory generator to easily get information about any folder. But you will still need to write actions that can handle delete / move / rename events.

Robby

From: Peter Sparkes [mailto:peter@didm.co.uk]
Sent: Saturday, December 22, 2012 4:44 PM
To: users@cocoon.apache.org
Subject: Delete, move or rename files

Hi,

Is there anyway of

  1.  deleting,
  2.  moving
  3.  renaming

xml files on the server.

Thanks

Peter