[ 
https://issues.apache.org/jira/browse/CAMEL-7169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13891321#comment-13891321
 ] 

Damir Isanbirdin commented on CAMEL-7169:
-----------------------------------------

I think, the file component is not correctly implemented. I do not want to use 
FTP or FTP2 components. This is only local file system with file components 
will be used :  need to move some files from one folder to another. 

just like:

           <from uri="file:/1?include=.*.(gz|zip)$"/>
            <to uri="file:/2"/>


In the source code, you create a new file with the same content like 
"xyz.camel" and and make copy of them. You call twice a "commit" -method from 
GenericFileProcessStrategy / GenericFileRenameProcessStrategy. This is ok if 
copy. But if we need to move the file, another "commit" is to much. 

s.  GenericFileProcessStrategySupport # renameFile(..) ,FileOperations # 
renameFile(..), FileUtil # renameFile(..)




> Generic File Process Strategy : Camel tries to rename already renamed (moved) 
> local file. 
> ------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-7169
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7169
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.12.0, 2.12.1, 2.12.2
>         Environment: Linux /CentOS6
>            Reporter: Damir Isanbirdin
>            Assignee: Claus Ibsen
>              Labels: file, local, rename
>         Attachments: log.move.rename.local.file.txt
>
>
> Generic File Process Strategy: Camel tries to rename already renamed (moved) 
> local file. 



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to