Main Content

CloudPermissions

Permissions of file or folder in remote location

Since R2025a

Description

Use a CloudPermissions object to view the permissions of a file or folder that resides in a remote location. The CloudPermissions object does not support symbolic links.

Creation

Create a CloudPermissions object using the filePermissions function.

You can then view individual permissions of a file or folder by using the getPermissions function.

Properties

expand all

This property is read-only.

Absolute path of a file or folder, returned as a string scalar.

This property is read-only.

Type, returned as File, Folder, or None. Type is None if MATLAB® cannot resolve the path in AbsolutePath.

This property is read-only.

Readable permission, returned as a 1 or 0 of data type logical. A value of 1 indicates that the file or folder is readable.

This property is read-only.

Writable permission, returned as a 1 or 0 of data type logical. A value of 1 indicates that the file or folder is writable.

Object Functions

getPermissionsGet individual permissions

Examples

collapse all

View the permissions of a file in a remote location.

perms = filePermissions("s3://bucket/file")
perms = 

       AbsolutePath       Type    Readable    Writable
    __________________    ____    ________    ________

    "s3://bucket/file"    File      true        true  

Version History

Introduced in R2025a