Поделиться через


FilePosixProperties Class

  • java.lang.Object
    • com.azure.storage.file.share.models.FilePosixProperties

public final class FilePosixProperties

NFS properties. Note that these properties only apply to files or directories in premium NFS file accounts.

Constructor Summary

Constructor Description
FilePosixProperties()

Default constructor

Method Summary

Modifier and Type Method and Description
String getFileMode()

Gets the file mode permissions.

NfsFileType getFileType()

Gets the file type.

String getGroup()

Gets the owner group identifier (GID).

Long getLinkCount()

Gets the link count of the file or directory.

String getOwner()

Gets the owner user identifier (UID).

FilePosixProperties setFileMode(String fileMode)

Optional.

FilePosixProperties setGroup(String group)

Optional.

FilePosixProperties setOwner(String owner)

Optional.

Methods inherited from java.lang.Object

Constructor Details

FilePosixProperties

public FilePosixProperties()

Default constructor

Method Details

getFileMode

public String getFileMode()

Gets the file mode permissions.

Returns:

the file mode permissions.

getFileType

public NfsFileType getFileType()

Gets the file type.

Returns:

the file type.

getGroup

public String getGroup()

Gets the owner group identifier (GID).

Returns:

the owner group identifier (GID).

getLinkCount

public Long getLinkCount()

Gets the link count of the file or directory.

Returns:

the link count of the file or directory.

getOwner

public String getOwner()

Gets the owner user identifier (UID).

Returns:

the owner user identifier (UID).

setFileMode

public FilePosixProperties setFileMode(String fileMode)

Optional. Version 2025-05-05 and newer. The mode permissions to be set on the file or directory. This can be in either symbolic or octal notation.

For more information, see this Wikipedia page.

Parameters:

fileMode - The mode permissions to be set on the file or directory.

Returns:

the FilePosixProperties object itself.

setGroup

public FilePosixProperties setGroup(String group)

Optional. The owner group identifier (GID) to be set on the file or directory. The default value is 0 (root group).

Parameters:

group - the owner group identifier (GID) to set.

Returns:

the FilePosixProperties object itself.

setOwner

public FilePosixProperties setOwner(String owner)

Optional. The owner user identifier (UID) to be set on the file or directory. The default value is 0 (root).

Parameters:

owner - the owner user identifier (UID) to set.

Returns:

the FilePosixProperties object itself.

Applies to