-
Notifications
You must be signed in to change notification settings - Fork 3
FTP.StatObject
Nick Riley edited this page Sep 19, 2015
·
1 revision
FTP. StatObject
Creates a new file stat object similar to Node’s fs.stat method.
Name | Type | Description |
---|---|---|
stat |
string |
The stat string of the file or directory i.e. “drwxr-xr-x 2 userfoo groupbar 4096 Jun 12:43 filename” |
Holds the relative number values for parsing permissions
with StatObject.parsePermissions
-
object
Create and return a new StatObject instance
Name | Type | Description |
---|---|---|
stat |
string |
The stat string of the file or directory. |
StatObject – New StatObject
- Type
-
object
Parses a permission string into it’s relative number value
Name | Type | Description |
---|---|---|
permissionString |
string |
The string of permissions i.e. “drwxrwxrwx” |
permissions – The number value of the given permissionString
- Type
-
number
- fileTransferComplete
- queueEmpty
- error
- ready