# FsNamespaceBinding

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

Filesystem namespace binding family.

```ds title="FsNamespaceBinding"
export interface FsNamespaceBinding {
    rename(from: &'a readonly FilesystemEntry, to: &'b readonly FilesystemEntry, flags: FilesystemRenameFlags): Result<void, HostError>;
    unlink(entry: &'a readonly FilesystemEntry): Result<void, HostError>;
    link(existing: &'a readonly FilesystemEntry, created: &'b readonly FilesystemEntry, flags: FilesystemLinkFlags): Result<void, HostError>;
    symlink(target: &'a readonly Path, created: &'b readonly FilesystemEntry, kind: FilesystemSymlinkKind): Result<void, HostError>;
    readSymlink(entry: &'a readonly FilesystemEntry, buffer: &'b PathBuffer): Result<uint64, HostError>;
    canonicalize(entry: &'a readonly FilesystemEntry, buffer: &'b PathBuffer): Result<uint64, HostError>;
    createFifo(entry: &'a readonly FilesystemEntry, mode: FileMode): Result<void, HostError>;
    createNode(entry: &'a readonly FilesystemEntry, options: FilesystemNodeOptions): Result<void, HostError>;
}
```

[language/library/src/fs/binding/namespace.ds:47:134](https://github.com/destack-sh/destack/blob/main/language/library/src/fs/binding/namespace.ds#L47-L134)

## Members

### `rename(from: &'a readonly FilesystemEntry, to: &'b readonly FilesystemEntry, flags: FilesystemRenameFlags): Result<void, HostError>`

Rename or exchange one filesystem entry.

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

Remove one non-directory filesystem entry.

### `link(existing: &'a readonly FilesystemEntry, created: &'b readonly FilesystemEntry, flags: FilesystemLinkFlags): Result<void, HostError>`

Create one hard link.

### `symlink(target: &'a readonly Path, created: &'b readonly FilesystemEntry, kind: FilesystemSymlinkKind): Result<void, HostError>`

Create one symbolic link.

### `readSymlink(entry: &'a readonly FilesystemEntry, buffer: &'b PathBuffer): Result<uint64, HostError>`

Read a symbolic link into an output buffer.

### `canonicalize(entry: &'a readonly FilesystemEntry, buffer: &'b PathBuffer): Result<uint64, HostError>`

Resolve an entry into an output buffer.

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

Create one FIFO node.

### `createNode(entry: &'a readonly FilesystemEntry, options: FilesystemNodeOptions): Result<void, HostError>`

Create one host filesystem node.
