Files
doc-exports/docs/modelarts/umn/modelarts_05_0077.html
Lai, Weijian 6aa966a79a ModelArts UMN 24.3.0 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Lai, Weijian <laiweijian4@huawei.com>
Co-committed-by: Lai, Weijian <laiweijian4@huawei.com>
2024-11-02 09:04:52 +00:00

1.4 KiB

How Do I View All Files Stored in OBS on ModelArts?

To view all files stored in OBS when using notebook instances or training jobs, use either of the following methods:

  • OBS console

    Log in to OBS console using the current account, and search for the OBS buckets, folders, and files.

  • You can use an API to check whether a given directory exists. In an existing notebook instance or after creating a new notebook instance, run the following command to check whether the directory exists:
    import moxing as mox
    mox.file.list_directory('obs://bucket_name', recursive=True)

    If there are a large number of files, wait until the final file path is displayed.