@nextcloud/files
Preparing search index...
dav
<internal>
WebDAVClient
Interface WebDAVClient
interface
WebDAVClient
{
copyFile
:
(
filename
:
string
,
destination
:
string
,
options
?:
CopyFileOptions
,
)
=>
Promise
<
void
>
;
createDirectory
:
(
path
:
string
,
options
?:
CreateDirectoryOptions
,
)
=>
Promise
<
void
>
;
createReadStream
:
(
filename
:
string
,
options
?:
CreateReadStreamOptions
,
)
=>
Readable
;
createWriteStream
:
(
filename
:
string
,
options
?:
CreateWriteStreamOptions
,
callback
?:
CreateWriteStreamCallback
,
)
=>
Writable
;
customRequest
:
(
path
:
string
,
requestOptions
:
RequestOptionsCustom
,
)
=>
Promise
<
Response
>
;
deleteFile
:
(
filename
:
string
,
options
?:
WebDAVMethodOptions
,
)
=>
Promise
<
void
>
;
exists
:
(
path
:
string
,
options
?:
WebDAVMethodOptions
)
=>
Promise
<
boolean
>
;
getDAVCompliance
:
(
path
:
string
)
=>
Promise
<
DAVCompliance
>
;
getFileContents
:
(
filename
:
string
,
options
?:
GetFileContentsOptions
,
)
=>
Promise
<
string
|
BufferLike
|
ResponseDataDetailed
<
(string | BufferLike)
>
,
>
;
getFileDownloadLink
:
(
filename
:
string
)
=>
string
;
getFileUploadLink
:
(
filename
:
string
)
=>
string
;
getHeaders
:
()
=>
Headers
;
getQuota
:
(
options
?:
GetQuotaOptions
,
)
=>
Promise
<
DiskQuota
|
ResponseDataDetailed
<
DiskQuota
|
null
>
|
null
>
;
lock
:
(
path
:
string
,
options
?:
LockOptions
)
=>
Promise
<
LockResponse
>
;
moveFile
:
(
filename
:
string
,
destinationFilename
:
string
,
options
?:
MoveFileOptions
,
)
=>
Promise
<
void
>
;
partialUpdateFileContents
:
(
filePath
:
string
,
start
:
number
,
end
:
number
,
data
:
string
|
Readable
|
BufferLike
,
options
?:
WebDAVMethodOptions
,
)
=>
Promise
<
void
>
;
putFileContents
:
(
filename
:
string
,
data
:
string
|
Readable
|
BufferLike
,
options
?:
PutFileContentsOptions
,
)
=>
Promise
<
boolean
>
;
registerAttributeParser
:
(
parser
:
WebDAVAttributeParser
)
=>
void
;
registerTagParser
:
(
parser
:
WebDAVTagParser
)
=>
void
;
search
:
(
path
:
string
,
options
?:
SearchOptions
,
)
=>
Promise
<
SearchResult
|
ResponseDataDetailed
<
SearchResult
>
>
;
setHeaders
:
(
headers
:
Headers
)
=>
void
;
stat
:
(
path
:
string
,
options
?:
StatOptions
,
)
=>
Promise
<
FileStat
|
ResponseDataDetailed
<
FileStat
>
>
;
unlock
:
(
path
:
string
,
token
:
string
,
options
?:
WebDAVMethodOptions
,
)
=>
Promise
<
void
>
;
getDirectoryContents
(
path
:
string
)
:
Promise
<
FileStat
[]
>
;
getDirectoryContents
(
path
:
string
,
options
:
GetDirectoryContentsOptionsWithDetails
,
)
:
Promise
<
ResponseDataDetailed
<
FileStat
[]
>
>
;
getDirectoryContents
(
path
:
string
,
options
:
GetDirectoryContentsOptionsWithoutDetails
,
)
:
Promise
<
FileStat
[]
>
;
}
Index
Properties
copy
File
create
Directory
create
Read
Stream
create
Write
Stream
custom
Request
delete
File
exists
get
DAV
Compliance
get
File
Contents
get
File
Download
Link
get
File
Upload
Link
get
Headers
get
Quota
lock
move
File
partial
Update
File
Contents
put
File
Contents
register
Attribute
Parser
register
Tag
Parser
search
set
Headers
stat
unlock
Methods
get
Directory
Contents
Properties
copy
File
copyFile
:
(
filename
:
string
,
destination
:
string
,
options
?:
CopyFileOptions
,
)
=>
Promise
<
void
>
create
Directory
createDirectory
:
(
path
:
string
,
options
?:
CreateDirectoryOptions
,
)
=>
Promise
<
void
>
create
Read
Stream
createReadStream
:
(
filename
:
string
,
options
?:
CreateReadStreamOptions
,
)
=>
Readable
create
Write
Stream
createWriteStream
:
(
filename
:
string
,
options
?:
CreateWriteStreamOptions
,
callback
?:
CreateWriteStreamCallback
,
)
=>
Writable
custom
Request
customRequest
:
(
path
:
string
,
requestOptions
:
RequestOptionsCustom
,
)
=>
Promise
<
Response
>
delete
File
deleteFile
:
(
filename
:
string
,
options
?:
WebDAVMethodOptions
)
=>
Promise
<
void
>
exists
exists
:
(
path
:
string
,
options
?:
WebDAVMethodOptions
)
=>
Promise
<
boolean
>
get
DAV
Compliance
getDAVCompliance
:
(
path
:
string
)
=>
Promise
<
DAVCompliance
>
get
File
Contents
getFileContents
:
(
filename
:
string
,
options
?:
GetFileContentsOptions
,
)
=>
Promise
<
string
|
BufferLike
|
ResponseDataDetailed
<
(string | BufferLike)
>
,
>
get
File
Download
Link
getFileDownloadLink
:
(
filename
:
string
)
=>
string
get
File
Upload
Link
getFileUploadLink
:
(
filename
:
string
)
=>
string
get
Headers
getHeaders
:
()
=>
Headers
get
Quota
getQuota
:
(
options
?:
GetQuotaOptions
,
)
=>
Promise
<
DiskQuota
|
ResponseDataDetailed
<
DiskQuota
|
null
>
|
null
>
lock
lock
:
(
path
:
string
,
options
?:
LockOptions
)
=>
Promise
<
LockResponse
>
move
File
moveFile
:
(
filename
:
string
,
destinationFilename
:
string
,
options
?:
MoveFileOptions
,
)
=>
Promise
<
void
>
partial
Update
File
Contents
partialUpdateFileContents
:
(
filePath
:
string
,
start
:
number
,
end
:
number
,
data
:
string
|
Readable
|
BufferLike
,
options
?:
WebDAVMethodOptions
,
)
=>
Promise
<
void
>
put
File
Contents
putFileContents
:
(
filename
:
string
,
data
:
string
|
Readable
|
BufferLike
,
options
?:
PutFileContentsOptions
,
)
=>
Promise
<
boolean
>
register
Attribute
Parser
registerAttributeParser
:
(
parser
:
WebDAVAttributeParser
)
=>
void
register
Tag
Parser
registerTagParser
:
(
parser
:
WebDAVTagParser
)
=>
void
search
search
:
(
path
:
string
,
options
?:
SearchOptions
,
)
=>
Promise
<
SearchResult
|
ResponseDataDetailed
<
SearchResult
>
>
set
Headers
setHeaders
:
(
headers
:
Headers
)
=>
void
stat
stat
:
(
path
:
string
,
options
?:
StatOptions
,
)
=>
Promise
<
FileStat
|
ResponseDataDetailed
<
FileStat
>
>
unlock
unlock
:
(
path
:
string
,
token
:
string
,
options
?:
WebDAVMethodOptions
,
)
=>
Promise
<
void
>
Methods
get
Directory
Contents
getDirectoryContents
(
path
:
string
)
:
Promise
<
FileStat
[]
>
Parameters
path
:
string
Returns
Promise
<
FileStat
[]
>
getDirectoryContents
(
path
:
string
,
options
:
GetDirectoryContentsOptionsWithDetails
,
)
:
Promise
<
ResponseDataDetailed
<
FileStat
[]
>
>
Parameters
path
:
string
options
:
GetDirectoryContentsOptionsWithDetails
Returns
Promise
<
ResponseDataDetailed
<
FileStat
[]
>
>
getDirectoryContents
(
path
:
string
,
options
:
GetDirectoryContentsOptionsWithoutDetails
,
)
:
Promise
<
FileStat
[]
>
Parameters
path
:
string
options
:
GetDirectoryContentsOptionsWithoutDetails
Returns
Promise
<
FileStat
[]
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
copy
File
create
Directory
create
Read
Stream
create
Write
Stream
custom
Request
delete
File
exists
get
DAV
Compliance
get
File
Contents
get
File
Download
Link
get
File
Upload
Link
get
Headers
get
Quota
lock
move
File
partial
Update
File
Contents
put
File
Contents
register
Attribute
Parser
register
Tag
Parser
search
set
Headers
stat
unlock
Methods
get
Directory
Contents
@nextcloud/files
Loading...