# Class: `DriveFSEmscriptenNodeOps` [@jupyterlite/contents](../modules/jupyterlite_contents.md).DriveFSEmscriptenNodeOps ## Implements - [`IEmscriptenNodeOps`](../interfaces/jupyterlite_contents.IEmscriptenNodeOps.md) ## Constructors ### `constructor` > > **`new DriveFSEmscriptenNodeOps`**(`fs`) #### Parameters | Name | Type | | :------ | :------ | | `fs` | [`DriveFS`](jupyterlite_contents.DriveFS-1.md) | #### Defined in [packages/contents/src/drivefs.ts:262](https://github.com/jupyterlite/jupyterlite/blob/bcc7ac7/packages/contents/src/drivefs.ts#L262) ## Properties ### `fs` > > `Private` **`fs`**: [`DriveFS`](jupyterlite_contents.DriveFS-1.md) #### Defined in [packages/contents/src/drivefs.ts:260](https://github.com/jupyterlite/jupyterlite/blob/bcc7ac7/packages/contents/src/drivefs.ts#L260) ## Methods ### `getattr` > > **`getattr`**(`value`): [`IStats`](../interfaces/jupyterlite_contents.IStats.md) #### Parameters | Name | Type | | :------ | :------ | | `value` | [`IEmscriptenFSNode`](../interfaces/jupyterlite_contents.IEmscriptenFSNode.md) \| [`IEmscriptenStream`](../interfaces/jupyterlite_contents.IEmscriptenStream.md) | #### Returns [`IStats`](../interfaces/jupyterlite_contents.IStats.md) #### Implementation of [IEmscriptenNodeOps](../interfaces/jupyterlite_contents.IEmscriptenNodeOps.md).[getattr](../interfaces/jupyterlite_contents.IEmscriptenNodeOps.md#getattr) #### Defined in [packages/contents/src/drivefs.ts:275](https://github.com/jupyterlite/jupyterlite/blob/bcc7ac7/packages/contents/src/drivefs.ts#L275) ### `lookup` > > **`lookup`**(`parent`, `name`): [`IEmscriptenFSNode`](../interfaces/jupyterlite_contents.IEmscriptenFSNode.md) #### Parameters | Name | Type | | :------ | :------ | | `parent` | [`IEmscriptenFSNode`](../interfaces/jupyterlite_contents.IEmscriptenFSNode.md) \| [`IEmscriptenStream`](../interfaces/jupyterlite_contents.IEmscriptenStream.md) | | `name` | `string` | #### Returns [`IEmscriptenFSNode`](../interfaces/jupyterlite_contents.IEmscriptenFSNode.md) #### Implementation of [IEmscriptenNodeOps](../interfaces/jupyterlite_contents.IEmscriptenNodeOps.md).[lookup](../interfaces/jupyterlite_contents.IEmscriptenNodeOps.md#lookup) #### Defined in [packages/contents/src/drivefs.ts:301](https://github.com/jupyterlite/jupyterlite/blob/bcc7ac7/packages/contents/src/drivefs.ts#L301) ### `mknod` > > **`mknod`**(`parent`, `name`, `mode`, `dev`): [`IEmscriptenFSNode`](../interfaces/jupyterlite_contents.IEmscriptenFSNode.md) #### Parameters | Name | Type | | :------ | :------ | | `parent` | [`IEmscriptenFSNode`](../interfaces/jupyterlite_contents.IEmscriptenFSNode.md) \| [`IEmscriptenStream`](../interfaces/jupyterlite_contents.IEmscriptenStream.md) | | `name` | `string` | | `mode` | `number` | | `dev` | `number` | #### Returns [`IEmscriptenFSNode`](../interfaces/jupyterlite_contents.IEmscriptenFSNode.md) #### Implementation of [IEmscriptenNodeOps](../interfaces/jupyterlite_contents.IEmscriptenNodeOps.md).[mknod](../interfaces/jupyterlite_contents.IEmscriptenNodeOps.md#mknod) #### Defined in [packages/contents/src/drivefs.ts:314](https://github.com/jupyterlite/jupyterlite/blob/bcc7ac7/packages/contents/src/drivefs.ts#L314) ### `node` > > `Protected` **`node`**(`nodeOrStream`): [`IEmscriptenFSNode`](../interfaces/jupyterlite_contents.IEmscriptenFSNode.md) #### Parameters | Name | Type | | :------ | :------ | | `nodeOrStream` | [`IEmscriptenFSNode`](../interfaces/jupyterlite_contents.IEmscriptenFSNode.md) \| [`IEmscriptenStream`](../interfaces/jupyterlite_contents.IEmscriptenStream.md) | #### Returns [`IEmscriptenFSNode`](../interfaces/jupyterlite_contents.IEmscriptenFSNode.md) #### Defined in [packages/contents/src/drivefs.ts:266](https://github.com/jupyterlite/jupyterlite/blob/bcc7ac7/packages/contents/src/drivefs.ts#L266) ### `readdir` > > **`readdir`**(`value`): `string`[] #### Parameters | Name | Type | | :------ | :------ | | `value` | [`IEmscriptenFSNode`](../interfaces/jupyterlite_contents.IEmscriptenFSNode.md) \| [`IEmscriptenStream`](../interfaces/jupyterlite_contents.IEmscriptenStream.md) | #### Returns `string`[] #### Implementation of [IEmscriptenNodeOps](../interfaces/jupyterlite_contents.IEmscriptenNodeOps.md).[readdir](../interfaces/jupyterlite_contents.IEmscriptenNodeOps.md#readdir) #### Defined in [packages/contents/src/drivefs.ts:353](https://github.com/jupyterlite/jupyterlite/blob/bcc7ac7/packages/contents/src/drivefs.ts#L353) ### `readlink` > > **`readlink`**(`node`): `string` #### Parameters | Name | Type | | :------ | :------ | | `node` | [`IEmscriptenFSNode`](../interfaces/jupyterlite_contents.IEmscriptenFSNode.md) \| [`IEmscriptenStream`](../interfaces/jupyterlite_contents.IEmscriptenStream.md) | #### Returns `string` #### Implementation of [IEmscriptenNodeOps](../interfaces/jupyterlite_contents.IEmscriptenNodeOps.md).[readlink](../interfaces/jupyterlite_contents.IEmscriptenNodeOps.md#readlink) #### Defined in [packages/contents/src/drivefs.ts:365](https://github.com/jupyterlite/jupyterlite/blob/bcc7ac7/packages/contents/src/drivefs.ts#L365) ### `rename` > > **`rename`**(`value`, `newDir`, `newName`): `void` #### Parameters | Name | Type | | :------ | :------ | | `value` | [`IEmscriptenFSNode`](../interfaces/jupyterlite_contents.IEmscriptenFSNode.md) \| [`IEmscriptenStream`](../interfaces/jupyterlite_contents.IEmscriptenStream.md) | | `newDir` | [`IEmscriptenFSNode`](../interfaces/jupyterlite_contents.IEmscriptenFSNode.md) \| [`IEmscriptenStream`](../interfaces/jupyterlite_contents.IEmscriptenStream.md) | | `newName` | `string` | #### Returns `void` #### Implementation of [IEmscriptenNodeOps](../interfaces/jupyterlite_contents.IEmscriptenNodeOps.md).[rename](../interfaces/jupyterlite_contents.IEmscriptenNodeOps.md#rename) #### Defined in [packages/contents/src/drivefs.ts:326](https://github.com/jupyterlite/jupyterlite/blob/bcc7ac7/packages/contents/src/drivefs.ts#L326) ### `rmdir` > > **`rmdir`**(`parent`, `name`): `void` #### Parameters | Name | Type | | :------ | :------ | | `parent` | [`IEmscriptenFSNode`](../interfaces/jupyterlite_contents.IEmscriptenFSNode.md) \| [`IEmscriptenStream`](../interfaces/jupyterlite_contents.IEmscriptenStream.md) | | `name` | `string` | #### Returns `void` #### Implementation of [IEmscriptenNodeOps](../interfaces/jupyterlite_contents.IEmscriptenNodeOps.md).[rmdir](../interfaces/jupyterlite_contents.IEmscriptenNodeOps.md#rmdir) #### Defined in [packages/contents/src/drivefs.ts:349](https://github.com/jupyterlite/jupyterlite/blob/bcc7ac7/packages/contents/src/drivefs.ts#L349) ### `setattr` > > **`setattr`**(`value`, `attr`): `void` #### Parameters | Name | Type | | :------ | :------ | | `value` | [`IEmscriptenFSNode`](../interfaces/jupyterlite_contents.IEmscriptenFSNode.md) \| [`IEmscriptenStream`](../interfaces/jupyterlite_contents.IEmscriptenStream.md) | | `attr` | [`IStats`](../interfaces/jupyterlite_contents.IStats.md) | #### Returns `void` #### Implementation of [IEmscriptenNodeOps](../interfaces/jupyterlite_contents.IEmscriptenNodeOps.md).[setattr](../interfaces/jupyterlite_contents.IEmscriptenNodeOps.md#setattr) #### Defined in [packages/contents/src/drivefs.ts:284](https://github.com/jupyterlite/jupyterlite/blob/bcc7ac7/packages/contents/src/drivefs.ts#L284) ### `symlink` > > **`symlink`**(`parent`, `newName`, `oldPath`): `void` #### Parameters | Name | Type | | :------ | :------ | | `parent` | [`IEmscriptenFSNode`](../interfaces/jupyterlite_contents.IEmscriptenFSNode.md) \| [`IEmscriptenStream`](../interfaces/jupyterlite_contents.IEmscriptenStream.md) | | `newName` | `string` | | `oldPath` | `string` | #### Returns `void` #### Implementation of [IEmscriptenNodeOps](../interfaces/jupyterlite_contents.IEmscriptenNodeOps.md).[symlink](../interfaces/jupyterlite_contents.IEmscriptenNodeOps.md#symlink) #### Defined in [packages/contents/src/drivefs.ts:357](https://github.com/jupyterlite/jupyterlite/blob/bcc7ac7/packages/contents/src/drivefs.ts#L357) ### `unlink` > > **`unlink`**(`parent`, `name`): `void` #### Parameters | Name | Type | | :------ | :------ | | `parent` | [`IEmscriptenFSNode`](../interfaces/jupyterlite_contents.IEmscriptenFSNode.md) \| [`IEmscriptenStream`](../interfaces/jupyterlite_contents.IEmscriptenStream.md) | | `name` | `string` | #### Returns `void` #### Implementation of [IEmscriptenNodeOps](../interfaces/jupyterlite_contents.IEmscriptenNodeOps.md).[unlink](../interfaces/jupyterlite_contents.IEmscriptenNodeOps.md#unlink) #### Defined in [packages/contents/src/drivefs.ts:345](https://github.com/jupyterlite/jupyterlite/blob/bcc7ac7/packages/contents/src/drivefs.ts#L345)