Files
doc-exports/docs/dataartsstudio/umn/dataartsstudio_01_0553.html
chenxiaoxiong c3942cbc2c DataArts UMN 20241028 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: chenxiaoxiong <chenxiaoxiong@huawei.com>
Co-committed-by: chenxiaoxiong <chenxiaoxiong@huawei.com>
2025-07-09 13:09:06 +00:00

3.7 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

Example

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.

  • 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")}

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")}