gftp/list/permission
This module contains the types and functions related to file permissions, such as read, write, and execute permissions for the owner, group, and others.
Types
The FilePermissions type represents the permissions for a file or directory in a POSIX file system.
pub type FilePermissions {
FilePermissions(
owner: PosixPermission,
group: PosixPermission,
others: PosixPermission,
)
}
Constructors
-
FilePermissions( owner: PosixPermission, group: PosixPermission, others: PosixPermission, )
The PosixPermission type represents the permissions for a group of users (owner, group, or others) in a POSIX file system.
It contains three boolean fields: read, write, and execute.
pub type PosixPermission {
PosixPermission(read: Bool, write: Bool, execute: Bool)
}
Constructors
-
PosixPermission(read: Bool, write: Bool, execute: Bool)
Values
pub fn from_int(value: Int) -> PosixPermission
Converts an integer value (0-7) to a PosixPermission type, where the bits represent the read, write, and execute permissions.