@jupyterlite

***`

@jupyterlite / @jupyterlite/contents / ContentsAPI

类:``抽象 ContentsAPI#

定义于:packages/contents/src/drivefs.ts:392

ContentsAPI 基类

扩展者#

构造函数#

构造函数#

**new ContentsAPI**(options): ContentsAPI

定义于:packages/contents/src/drivefs.ts:393

参数#

选项#

IOptions

返回#

ContentsAPI

属性#

ERRNO_CODES#

protected **ERRNO\_CODES**: any

定义于:packages/contents/src/drivefs.ts:550

`***

FS#

protected FS: FS

定义于:packages/contents/src/drivefs.ts:549

方法#

get()#

get(path): IFile

定义于:packages/contents/src/drivefs.ts:439

参数#

path#

string

返回#

IFile

***`

getattr()#

**getattr**(path): IStats

定义于:packages/contents/src/drivefs.ts:505

参数#

path#

string

返回#

IStats

`***

getmode()#

getmode(path): number

定义于:packages/contents/src/drivefs.ts:405

参数#

path#

string

返回#

number

***`

lookup()#

**lookup**(path): ILookup

定义于:packages/contents/src/drivefs.ts:401

参数#

path#

string

返回#

ILookup

`***

mknod()#

mknod(path, mode): null

定义于:packages/contents/src/drivefs.ts:409

参数#

path#

string

mode#

number

返回#

null

***`

normalizePath()#

**normalizePath**(path): string

定义于:packages/contents/src/drivefs.ts:530

通过使其符合内容管理器来规范化路径

参数#

path#

string

返回#

string

`***

put()#

put(path, value): null

定义于:packages/contents/src/drivefs.ts:476

参数#

path#

string

value#

IFile

返回#

null

***`

readdir()#

**readdir**(path): string[]

定义于:packages/contents/src/drivefs.ts:425

参数#

path#

string

返回#

string[]

`***

rename()#

rename(oldPath, newPath): null

定义于:packages/contents/src/drivefs.ts:417

参数#

oldPath#

string

newPath#

string

返回#

null

***`

request()#

abstract **request**\<T\>(data): [TDriveResponse](../type-aliases/TDriveResponse.md)\<T`>

定义于:packages/contents/src/drivefs.ts:544

类型参数#

T#

T extends TDriveMethod

参数#

data#

TDriveRequest<T>

返回#

TDriveResponse<T>

***`

rmdir()#

**rmdir**(path): null`

定义于:packages/contents/src/drivefs.ts:435

参数#

path#

string

返回#

null