104.3. 파일 토큰 예

104.3.1. 상대 경로

다음 상대 디렉토리에 있는 hello.txt 파일에 대한 java.io.File 핸들이 있습니다 . .\file language\test. 그리고 우리는 이 시작 디렉토리 .\file language를 사용하도록 끝점을 설정합니다. 파일 토큰이 다음과 같이 반환됩니다.

expression반환

file:name

test\hello.txt

file:name.ext

txt

file:name.noext

test\hello

file:onlyname

hello.txt

file:onlyname.noext

hello

file:ext

txt

file:parent

filelanguage\test

file:path

filelanguage\test\hello.txt

file:absolute

false

file:absolute.path

\workspace\camel\camel-core\target\filelanguage\test\hello.txt