Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expression

Type

File Consumer

File Producer

FTP Consumer

FTP Producer

Description

file:name

String

yes

no

yes

no

refers to the file name

file:name.ext

String

yes

no

yes

no

Camel 2.0: refers to the file extension only

file:name.noext

String

yes

no

yes

no

refers to the file name with no extension

file:parent

String

yes

no

yes

no

refers to the file parent

file:path

String

yes

no

yes

no

refers to the file path

file:absolute.path

String

yes

no

no

no

refers to the absolute file path

file:canonical.path

String

yes

no

no

no

refers to the canonical path

file:length

Long

yes

no

yes

no

refers to the file length returned as a Long type

date:command:pattern

String

yes

no

no

no

for date formatting using the java.text.SimepleDataFormat patterns. Is an extension to the Simple language. Additional command is: file for the last modified timestamp of the file. Notice: all the commands from the Simple language can also be used.

...

Expression

Returns

file:name

hello.txt

file:name.ext

txt

file:name.noext

hello

file:parent

target\filelanguage

file:path

target\filelanguage\hello.txt

file:absolute.path

D:\project\camel\camel-core\target\filelanguage\hello.txt

file:canonical.path

D:\project\camel\camel-core\target\filelanguage\hello.txt

...