Interface: IDriveContentsProcessor
#
@jupyterlite/contents.IDriveContentsProcessor
Implemented by#
Methods#
get
#
get
(request
):Promise
<undefined
| {content
:any
;format
:FileFormat
}>
Process the request to get the content of a file
Parameters#
Name |
Type |
Description |
---|---|---|
|
|
the request |
Returns#
Promise
<undefined
| { content
: any
; format
: FileFormat
}>
Defined in#
getattr
#
getattr
(request
):Promise
<IStats
>
Process the request to get a node stats
Parameters#
Name |
Type |
Description |
---|---|---|
|
|
the request |
Returns#
Promise
<IStats
>
Defined in#
getmode
#
getmode
(request
):Promise
<number
>
Process the request to get the node mode (file or directory)
Parameters#
Name |
Type |
Description |
---|---|---|
|
|
the request |
Returns#
Promise
<number
>
Defined in#
lookup
#
lookup
(request
):Promise
<ILookup
>
Process the request to check if a node exist
Parameters#
Name |
Type |
Description |
---|---|---|
|
|
the request |
Returns#
Promise
<ILookup
>
Defined in#
mknod
#
mknod
(request
):Promise
<null
>
Process the request to create a directory/file
Parameters#
Name |
Type |
Description |
---|---|---|
|
|
the request |
Returns#
Promise
<null
>
Defined in#
processDriveRequest
#
processDriveRequest
<T
>(request
):Promise
<TDriveResponse
<T
>>
Process a content request
Type parameters#
Name |
Type |
---|---|
|
extends |
Parameters#
Name |
Type |
Description |
---|---|---|
|
the request |
Returns#
Promise
<TDriveResponse
<T
>>
Defined in#
put
#
put
(request
):Promise
<null
>
Process the request to write the content of a file
Parameters#
Name |
Type |
Description |
---|---|---|
|
|
the request |
Returns#
Promise
<null
>
Defined in#
readdir
#
readdir
(request
):Promise
<string
[]>
Process the request to read a directory content
Parameters#
Name |
Type |
Description |
---|---|---|
|
|
the request |
Returns#
Promise
<string
[]>
Defined in#
rename
#
rename
(request
):Promise
<null
>
Process the request to rename a file or directory
Parameters#
Name |
Type |
Description |
---|---|---|
|
|
the request |
Returns#
Promise
<null
>
Defined in#
rmdir
#
rmdir
(request
):Promise
<null
>
Process the request to remove a directory
Parameters#
Name |
Type |
Description |
---|---|---|
|
|
the request |
Returns#
Promise
<null
>