FTPClient
FTPFileInfo
HTTPClient
HTTPClientLoggingConfig
HTTPRequestPart
Mail
SFTPClient
SFTPFileInfo
WebDAVClient
WebDAVFileInfo
DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!
Let us know so we can improve!
Simple class representing a file on a remote WebDAV location. The class possesses only read-only attributes of the file and does not permit any manipulation of the file itself. Instances of this class are returned by WebDAVClient.propfind(String) which is used to get a listing of files in a WebDAV directory.
Note: when this class is used with sensitive data, be careful in persisting sensitive information to disk.
| Property | Description |
|---|---|
contentType: String (read-only) | Returns the content type of the file. |
creationDate: Date (read-only) | Returns the creationDate of the file. |
directory: Boolean (read-only) | Identifies if the file is a directory. |
name: String (read-only) | Returns the name of the file. |
path: String (read-only) | Returns the path of the file. |
size: Number (read-only) | Returns the size of the file. |
This class does not have a constructor, so you cannot create it directly.
| Method | Description |
|---|---|
| getContentType() | Returns the content type of the file. |
| getCreationDate() | Returns the creationDate of the file. |
| getName() | Returns the name of the file. |
| getPath() | Returns the path of the file. |
| getSize() | Returns the size of the file. |
| isDirectory() | Identifies if the file is a directory. |
| lastModified() | Returns the lastModified date of the file. |
assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values
(read-only)Returns the content type of the file.
(read-only)Returns the creationDate of the file.
(read-only)Identifies if the file is a directory.
(read-only)Returns the name of the file.
(read-only)Returns the path of the file.
(read-only)Returns the size of the file.
Returns the content type of the file.
Returns:
Returns the creationDate of the file.
Returns:
Returns the name of the file.
Returns:
Returns the path of the file.
Returns:
Returns the size of the file.
Returns:
Identifies if the file is a directory.
Returns:
Returns the lastModified date of the file.
Returns: