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.
Deprecated:
The FTPClient is deprecated. Use SFTPClient for a secure alternative.
Warning
| Property | Description |
|---|---|
directory: Boolean (read-only) | Identifies if the file is a directory. |
name: String (read-only) | Returns the name of the file. |
size: Number (read-only) | Returns the size of the file. |
timestamp: Date (read-only) | Returns the timestamp of the file. |
| Constructor | Description |
|---|---|
| FTPFileInfo(String, Number, Boolean, Date) | Constructs the FTPFileInfo instance. |
| Method | Description |
|---|---|
| getDirectory() | Identifies if the file is a directory. |
| getName() | Returns the name of the file. |
| getSize() | Returns the size of the file. |
| getTimestamp() | Returns the timestamp 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)Identifies if the file is a directory.
(read-only)Returns the name of the file.
(read-only)Returns the size of the file.
(read-only)Returns the timestamp of the file.
Constructs the FTPFileInfo instance.
Parameters:
Identifies if the file is a directory.
Returns:
Returns the name of the file.
Returns:
Returns the size of the file.
Returns:
Returns the timestamp of the file.
Returns: