105.3. 파일 토큰 예
105.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 | 안녕하세요 |
| 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 |
105.3.2. 절대 경로 링크 복사링크가 클립보드에 복사되었습니다!
다음과 같은 절대 디렉토리에 hello.txt 파일에 대한 java.io.File 처리가 있습니다. \workspace\camel\camel-core\target\file language\test. 그리고 절대 시작 디렉토리 \workspace\camel\camel-core\target\file language 를 사용하도록 끝점을 구성합니다. 파일 토큰은 다음과 같이 반환됩니다.
| expression | 반환 |
|---|---|
| file:name | test\hello.txt |
| file:name.ext | txt |
| file:name.noext | test\hello |
| file:onlyname | hello.txt |
| file:onlyname.noext | 안녕하세요 |
| 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 |