doc-exports/docs/dataartsstudio/umn/dataartsstudio_01_0553.html
Xiong, Chen Xiao f3ee29a3dd DataArts UMN 20230329 version
Reviewed-by: Rechenburg, Matthias <matthias.rechenburg@t-systems.com>
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Xiong, Chen Xiao <chenxiaoxiong@huawei.com>
Co-committed-by: Xiong, Chen Xiao <chenxiaoxiong@huawei.com>
2023-05-11 17:09:25 +00:00

2.8 KiB

OBSUtil Embedded Objects

The OBSUtil embedded objects provide a series of OBS operation methods, for example, checking whether an OBS file or directory exists.

Methods

Table 1 Method description

Method

Description

boolean isExistOBSPath(String obsPath)

Check whether the OBS file or the OBS directory that ends with a slash (/) exists. If the file or directory exists, true is returned. If not, false is returned.

Examples

  • The following is the EL expression for checking whether the OBS directory that ends with a slash (/) exists:

    #{OBSUtil.isExistOBSPath("obs://test/jobs/")}

  • The following is the EL expression for checking whether the OBS file exists:

    #{OBSUtil.isExistOBSPath("obs://test/jobs/job.log")}