82.3. 파일 토큰 예
82.3.1. 상대 경로 링크 복사링크가 클립보드에 복사되었습니다!
We have a java.io.File
handle for the file hello.txt
in the following relative directory: .\fileECDHE\test
. 그리고 이 시작 디렉터리를 사용하도록 엔드 포인트를 구성합니다
. 파일 토큰은 다음과 같이 반환됩니다.
expression | 반환 |
---|---|
file:name | test\hello.txt |
file:name.ext | txt |
file:name.noext | test\hello |
file:onlyname | hello.txt |
file:onlyname.noext | hello |
파일: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 |
82.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 |
파일: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 |