[**@jupyterlite**](../../../README.md) *** [@jupyterlite](../../../README.md) / [@jupyterlite/services](../README.md) / SiteDrive # Class: SiteDrive Defined in: [packages/services/src/contents/sitedrive.ts:35](https://github.com/jupyterlite/jupyterlite/blob/06135acda3fed61445f5e3db7520ecef5cd4ce4d/packages/services/src/contents/sitedrive.ts#L35) A read-only drive exposing generated JupyterLite configuration files. ## Implements - `IDrive` ## Constructors ### Constructor > **new SiteDrive**(`options`): `SiteDrive` Defined in: [packages/services/src/contents/sitedrive.ts:39](https://github.com/jupyterlite/jupyterlite/blob/06135acda3fed61445f5e3db7520ecef5cd4ce4d/packages/services/src/contents/sitedrive.ts#L39) Construct a new site drive. #### Parameters ##### options [`IOptions`](../namespaces/SiteDrive/interfaces/IOptions.md) #### Returns `SiteDrive` ## Properties ### ready > `readonly` **ready**: `Promise`\<`void`\> Defined in: [packages/services/src/contents/sitedrive.ts:47](https://github.com/jupyterlite/jupyterlite/blob/06135acda3fed61445f5e3db7520ecef5cd4ce4d/packages/services/src/contents/sitedrive.ts#L47) A promise that resolves when the configuration files are ready. ## Accessors ### fileChanged #### Get Signature > **get** **fileChanged**(): `ISignal`\<`IDrive`, `IChangedArgs`\> Defined in: [packages/services/src/contents/sitedrive.ts:84](https://github.com/jupyterlite/jupyterlite/blob/06135acda3fed61445f5e3db7520ecef5cd4ce4d/packages/services/src/contents/sitedrive.ts#L84) A signal emitted when a file operation takes place. ##### Returns `ISignal`\<`IDrive`, `IChangedArgs`\> #### Implementation of `Contents.IDrive.fileChanged` *** ### isDisposed #### Get Signature > **get** **isDisposed**(): `boolean` Defined in: [packages/services/src/contents/sitedrive.ts:63](https://github.com/jupyterlite/jupyterlite/blob/06135acda3fed61445f5e3db7520ecef5cd4ce4d/packages/services/src/contents/sitedrive.ts#L63) Whether the drive is disposed. ##### Returns `boolean` #### Implementation of `Contents.IDrive.isDisposed` *** ### name #### Get Signature > **get** **name**(): `string` Defined in: [packages/services/src/contents/sitedrive.ts:70](https://github.com/jupyterlite/jupyterlite/blob/06135acda3fed61445f5e3db7520ecef5cd4ce4d/packages/services/src/contents/sitedrive.ts#L70) The name of the drive. ##### Returns `string` #### Implementation of `Contents.IDrive.name` *** ### serverSettings #### Get Signature > **get** **serverSettings**(): `ISettings` Defined in: [packages/services/src/contents/sitedrive.ts:77](https://github.com/jupyterlite/jupyterlite/blob/06135acda3fed61445f5e3db7520ecef5cd4ce4d/packages/services/src/contents/sitedrive.ts#L77) The server settings of the drive. ##### Returns `ISettings` #### Implementation of `Contents.IDrive.serverSettings` ## Methods ### copy() > **copy**(`path`, `toDir`): `Promise`\<`IModel`\> Defined in: [packages/services/src/contents/sitedrive.ts:165](https://github.com/jupyterlite/jupyterlite/blob/06135acda3fed61445f5e3db7520ecef5cd4ce4d/packages/services/src/contents/sitedrive.ts#L165) Copy a file - not supported by the read-only drive. #### Parameters ##### path `string` ##### toDir `string` #### Returns `Promise`\<`IModel`\> #### Implementation of `Contents.IDrive.copy` *** ### createCheckpoint() > **createCheckpoint**(`path`): `Promise`\<`ICheckpointModel`\> Defined in: [packages/services/src/contents/sitedrive.ts:196](https://github.com/jupyterlite/jupyterlite/blob/06135acda3fed61445f5e3db7520ecef5cd4ce4d/packages/services/src/contents/sitedrive.ts#L196) Create a checkpoint - not supported by the read-only drive. #### Parameters ##### path `string` #### Returns `Promise`\<`ICheckpointModel`\> #### Implementation of `Contents.IDrive.createCheckpoint` *** ### delete() > **delete**(`path`): `Promise`\<`void`\> Defined in: [packages/services/src/contents/sitedrive.ts:189](https://github.com/jupyterlite/jupyterlite/blob/06135acda3fed61445f5e3db7520ecef5cd4ce4d/packages/services/src/contents/sitedrive.ts#L189) Delete a file - not supported by the read-only drive. #### Parameters ##### path `string` #### Returns `Promise`\<`void`\> #### Implementation of `Contents.IDrive.delete` *** ### deleteCheckpoint() > **deleteCheckpoint**(`path`, `checkpointID`): `Promise`\<`void`\> Defined in: [packages/services/src/contents/sitedrive.ts:217](https://github.com/jupyterlite/jupyterlite/blob/06135acda3fed61445f5e3db7520ecef5cd4ce4d/packages/services/src/contents/sitedrive.ts#L217) Delete a checkpoint - not supported by the read-only drive. #### Parameters ##### path `string` ##### checkpointID `string` #### Returns `Promise`\<`void`\> #### Implementation of `Contents.IDrive.deleteCheckpoint` *** ### dispose() > **dispose**(): `void` Defined in: [packages/services/src/contents/sitedrive.ts:52](https://github.com/jupyterlite/jupyterlite/blob/06135acda3fed61445f5e3db7520ecef5cd4ce4d/packages/services/src/contents/sitedrive.ts#L52) Dispose the drive. #### Returns `void` #### Implementation of `Contents.IDrive.dispose` *** ### get() > **get**(`path`, `options?`): `Promise`\<`IModel`\> Defined in: [packages/services/src/contents/sitedrive.ts:91](https://github.com/jupyterlite/jupyterlite/blob/06135acda3fed61445f5e3db7520ecef5cd4ce4d/packages/services/src/contents/sitedrive.ts#L91) Get a file or directory as a read-only model. #### Parameters ##### path `string` ##### options? `IFetchOptions` #### Returns `Promise`\<`IModel`\> #### Implementation of `Contents.IDrive.get` *** ### getDownloadUrl() > **getDownloadUrl**(`path`): `Promise`\<`string`\> Defined in: [packages/services/src/contents/sitedrive.ts:144](https://github.com/jupyterlite/jupyterlite/blob/06135acda3fed61445f5e3db7520ecef5cd4ce4d/packages/services/src/contents/sitedrive.ts#L144) Get a download URL for a file. #### Parameters ##### path `string` #### Returns `Promise`\<`string`\> #### Implementation of `Contents.IDrive.getDownloadUrl` *** ### listCheckpoints() > **listCheckpoints**(`path`): `Promise`\<`ICheckpointModel`[]\> Defined in: [packages/services/src/contents/sitedrive.ts:203](https://github.com/jupyterlite/jupyterlite/blob/06135acda3fed61445f5e3db7520ecef5cd4ce4d/packages/services/src/contents/sitedrive.ts#L203) List the checkpoints for a file - always empty for the read-only drive. #### Parameters ##### path `string` #### Returns `Promise`\<`ICheckpointModel`[]\> #### Implementation of `Contents.IDrive.listCheckpoints` *** ### newUntitled() > **newUntitled**(`options?`): `Promise`\<`IModel`\> Defined in: [packages/services/src/contents/sitedrive.ts:158](https://github.com/jupyterlite/jupyterlite/blob/06135acda3fed61445f5e3db7520ecef5cd4ce4d/packages/services/src/contents/sitedrive.ts#L158) Create a new untitled file - not supported by the read-only drive. #### Parameters ##### options? `ICreateOptions` #### Returns `Promise`\<`IModel`\> #### Implementation of `Contents.IDrive.newUntitled` *** ### rename() > **rename**(`oldLocalPath`, `newLocalPath`): `Promise`\<`IModel`\> Defined in: [packages/services/src/contents/sitedrive.ts:172](https://github.com/jupyterlite/jupyterlite/blob/06135acda3fed61445f5e3db7520ecef5cd4ce4d/packages/services/src/contents/sitedrive.ts#L172) Rename a file - not supported by the read-only drive. #### Parameters ##### oldLocalPath `string` ##### newLocalPath `string` #### Returns `Promise`\<`IModel`\> #### Implementation of `Contents.IDrive.rename` *** ### restoreCheckpoint() > **restoreCheckpoint**(`path`, `checkpointID`): `Promise`\<`void`\> Defined in: [packages/services/src/contents/sitedrive.ts:210](https://github.com/jupyterlite/jupyterlite/blob/06135acda3fed61445f5e3db7520ecef5cd4ce4d/packages/services/src/contents/sitedrive.ts#L210) Restore a checkpoint - not supported by the read-only drive. #### Parameters ##### path `string` ##### checkpointID `string` #### Returns `Promise`\<`void`\> #### Implementation of `Contents.IDrive.restoreCheckpoint` *** ### save() > **save**(`path`, `options`): `Promise`\<`IModel`\> Defined in: [packages/services/src/contents/sitedrive.ts:179](https://github.com/jupyterlite/jupyterlite/blob/06135acda3fed61445f5e3db7520ecef5cd4ce4d/packages/services/src/contents/sitedrive.ts#L179) Save a file - not supported by the read-only drive. #### Parameters ##### path `string` ##### options `Partial`\<`IModel`\> & `IContentProvisionOptions` = `{}` #### Returns `Promise`\<`IModel`\> #### Implementation of `Contents.IDrive.save`