camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <>
Subject [jira] [Commented] (CAMEL-4474) file: consumer does not create directory
Date Thu, 22 Sep 2011 07:25:26 GMT


Claus Ibsen commented on CAMEL-4474:

That dot thingy is a left over from the 1.x days as you could configure a fileName and/or
a directory. In 2.x it must be a starting directory. And you can use the new fileName option
to pin point a specific file.

David there is something wrong with your system as we use the File API to check if its a directory
boolean isDirectory = file.isDirectory();
        if (!isDirectory && file.getName().contains(".")) {
            throw new IllegalArgumentException("Only directory is supported. Endpoint must
be configured with a valid starting directory: " + file);

So what OS and file system are you using?

> file: consumer does not create directory
> ----------------------------------------
>                 Key: CAMEL-4474
>                 URL:
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.8.1
>         Environment: java 1.6
>            Reporter: David J. M. Karlsen
>              Labels: component, consumer, file
>         Attachments:, app-config-context.xml,, test-context.xml
> According to autoCreate is true by default and should
for a consumer create the directory.
> {noformat}
> autoCreate 	true 	Automatically create missing directories in the file's pathname. For
the file consumer, that means creating the starting directory. For the file producer, it means
the directory the files should be written to. 
> {noformat}
> This does not happen and thus a route startup would fail.

This message is automatically generated by JIRA.
For more information on JIRA, see:


View raw message