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!
The class is used to store information about a remote file.
Note: when this class is used with sensitive data, be careful in persisting sensitive information to disk.
| Property | Description |
|---|---|
directory: Boolean (read-only) | Identifies if the file is a directory. |
modificationTime: Date (read-only) | Returns the last modification time of the file/directory. |
name: String (read-only) | Returns the name of the file/directory. |
size: Number (read-only) | Returns the size of the file/directory. |
| Constructor | Description |
|---|---|
| SFTPFileInfo(String, Number, Boolean, Number) | Constructs the SFTPFileInfo instance. |
| Method | Description |
|---|---|
| getDirectory() | Identifies if the file is a directory. |
| getModificationTime() | Returns the last modification time of the file/directory. |
| getName() | Returns the name of the file/directory. |
| getSize() | Returns the size of the file/directory. |
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)Identifies if the file is a directory.
(read-only)Returns the last modification time of the file/directory.
(read-only)Returns the name of the file/directory.
(read-only)Returns the size of the file/directory.
Constructs the SFTPFileInfo instance.
Parameters:
Identifies if the file is a directory.
Returns:
Returns the last modification time of the file/directory.
Returns:
Returns the name of the file/directory.
Returns:
Returns the size of the file/directory.
Returns: