104.3. 파일 토큰 예
104.3.1. 상대 경로 링크 복사링크가 클립보드에 복사되었습니다!
We have a java.io.File
handle for the file hello.txt
in the following relative directory: .\fileECDHE\test
. 이 시작 디렉토리를 사용하도록 끝점을 구성하십시오. .\fileECDHE
. 파일 토큰은 다음과 같이 반환됩니다.
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 |
104.3.2. 절대 경로 링크 복사링크가 클립보드에 복사되었습니다!
hello.txt
파일에 대한 java.io.File
처리가 다음 절대 디렉토리에 있습니다. \workspace\camel\camel-core\target\fileECDHE\test
. 또한 절대 시작 디렉토리 \workspace\camel\camel-core\target\fileECDHE를 사용하도록 끝점을 구성합니다
. 파일 토큰은 다음과 같이 반환됩니다.
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 | \workspace\camel\camel-core\target\filelanguage\test |
file:path | \workspace\camel\camel-core\target\filelanguage\test\hello.txt |
file:absolute | true |
file:absolute.path | \workspace\camel\camel-core\target\filelanguage\test\hello.txt |