# FsAttributeBinding

`import { FsAttributeBinding } from "destack:fs/binding";`

Filesystem attribute binding family.

```ds title="FsAttributeBinding"
export interface FsAttributeBinding {
    checkAccess(entry: &'a readonly FilesystemEntry, access: FileAccessMask): Result<void, HostError>;
    setMode(entry: &'a readonly FilesystemEntry, mode: FileMode, isFollowing: boolean): Result<void, HostError>;
    setOpenMode(file: FileHandle, mode: FileMode): Result<void, HostError>;
    setOwner(entry: &'a readonly FilesystemEntry, owner: &'b readonly FileOwner, isFollowing: boolean): Result<void, HostError>;
    setOpenOwner(file: FileHandle, owner: &'a readonly FileOwner): Result<void, HostError>;
    setTimes(entry: &'a readonly FilesystemEntry, times: FileTimes, isFollowing: boolean): Result<void, HostError>;
    setOpenTimes(file: FileHandle, times: FileTimes): Result<void, HostError>;
}
```

[language/library/src/fs/binding/attribute.ds:23:98](https://github.com/destack-sh/destack/blob/main/language/library/src/fs/binding/attribute.ds#L23-L98)

## Members

### `checkAccess(entry: &'a readonly FilesystemEntry, access: FileAccessMask): Result<void, HostError>`

Check access to a filesystem entry.

### `setMode(entry: &'a readonly FilesystemEntry, mode: FileMode, isFollowing: boolean): Result<void, HostError>`

Set the permission mode for an entry.

### `setOpenMode(file: FileHandle, mode: FileMode): Result<void, HostError>`

Set the permission mode for an open file.

### `setOwner(entry: &'a readonly FilesystemEntry, owner: &'b readonly FileOwner, isFollowing: boolean): Result<void, HostError>`

Set the owner for an entry.

### `setOpenOwner(file: FileHandle, owner: &'a readonly FileOwner): Result<void, HostError>`

Set the owner for an open file.

### `setTimes(entry: &'a readonly FilesystemEntry, times: FileTimes, isFollowing: boolean): Result<void, HostError>`

Set access and modification times for an entry.

### `setOpenTimes(file: FileHandle, times: FileTimes): Result<void, HostError>`

Set access and modification times for an open file.
