[DEPRECATED] Script: Class dw.net.FTPFileInfo
Class FTPFileInfo
- Object
- dw.net.FTPFileInfo
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.
Properties
directory : boolean Read Only
Identifies if the file is a directory.
name : String Read Only
The name of the file.
size : Number Read Only
The size of the file.
timestamp : Date Read Only
The timestamp of the file.
Constructor Summary
FTPFileInfo(name : String, size : Number, directory : boolean, timestamp : Date)
Constructs the FTPFileInfo instance.
Method Summary
getDirectory() : boolean
Identifies if the file is a directory.
Returns the name of the file.
Returns the size of the file.
getTimestamp() : Date
Returns the timestamp of the file.
Methods inherited from class Object
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
Constructor Detail
FTPFileInfo
publicFTPFileInfo(name : String, size : Number, directory : boolean, timestamp : Date)
Constructs the FTPFileInfo instance.
Parameters:
name - the name of the file.
size - the size of the file.
directory - controls if the file is a directory.
timestamp - the timestamp of the file.
Method Detail
getDirectory
getDirectory() : boolean
Identifies if the file is a directory.
Returns:
true if the file is a directory, false otherwise.
getName
getName() : String
Returns the name of the file.
Returns:
the name of the file.
getSize
getSize() : Number
Returns the size of the file.
Returns:
the size of the file.
getTimestamp
getTimestamp() : Date
Returns the timestamp of the file.
Returns:
the timestamp of the file.