Opened 16 years ago
Closed 16 years ago
#1228 closed Feature Request (Completed)
FTPEx.au3 missing callback parameter for some functions.
| Reported by: | Beege | Owned by: | J-Paul Mesnage |
|---|---|---|---|
| Milestone: | 3.3.1.5 | Component: | Standard UDFs |
| Version: | Severity: | None | |
| Keywords: | Cc: |
Description
Each one of these functions use another function that allows a callback($l_Context) to be passed, but dosent include an option to pass the callback.
_FTP_DirPutContents uses _FTP_FilePut
_Ftp_ListToArray, _Ftp_ListToArray2D, _FTP_ListToArrayEx all use Internel _FTP_ListToArray which uses _FTP_FindFileFirst.
One small problem(not really a problem) that i ran into with this is that if you use a callback with _FTP_Connect, every time you use these functions _FTP_Connect reports that a handle has been created. Since the callback is not passed to the any of these functions, they do not report that the handle is being closed which made it apperar like I had all these open handles or something.
Documentation changes to $l_Context discription. Here is the current descriptions:
_FTP_Connect - 'Optional, I dont got a clue what this does.'
_FTP_FileOpen - '(Not Used) See notes below.
_FTP_FileGet - '(Not Used) in case someone can use it.'
_FTP_FilePut - '(Not Used) in case someone can use it.'
_FTP_FindFileFirst - '(Not Used) in case someone can use it.'
_FTP_Command - 'Optional, A pointer to a variable that contains an application-defined value used to identify the application context in callback operations'
I feel that all of these descriptions should be the same. Having them all point to _FTP_FileOpen might be good because that function includes a true desription about what it is and the requirements(InternetSetStatusCallback) to use it.
THANKYOU FOR AUTOIT!
Attachments (2)
Change History (10)
comment:1 by , 16 years ago
comment:2 by , 16 years ago
| Component: | AutoIt → Standard UDFs |
|---|---|
| Owner: | set to |
can you post a script that make the callback being access?
Thanks
About Doc I was what Wouter designer submitted.
As soon a workable solution of defining a callback function we will update it.
by , 16 years ago
| Attachment: | FTPEx Changes Request.rar added |
|---|
comment:3 by , 16 years ago
Gary, Here is the script you asked for. I also include some suggestions for the callback. Thanks again and please let me know if theres ever anything else I can do to help!
comment:4 by , 16 years ago
I forgot one parameter in _FTP_DirPutContents(). The Section that calls itself if is a recursive upload.
If $b_RecursivePut Then
_FTP_DirPutContents() <<<<<<<<<<<<<<< This needs to also have $l_Context
EndIf
comment:5 by , 16 years ago
@Beege
Thanks for the changes.
But I miss a complete working example using _FTP_SetStatusCallBack() that I can include in the doc.
comment:6 by , 16 years ago
@Jpm
Here is a complete working example of _FTP_SetStatusCallback(). I also added more comments for clarity. As always let me know if forgot something or can help with anything for autoit.
by , 16 years ago
| Attachment: | _FTP_SetStatusCallback Example.au3 added |
|---|
comment:7 by , 16 years ago
I did it again..
Line 99 is suppose to be $_ghCallback_FTP = $CallBack_Register
comment:8 by , 16 years ago
| Milestone: | → 3.3.1.5 |
|---|---|
| Owner: | changed from to |
| Resolution: | → Completed |
| Status: | new → closed |
Added in version: 3.3.1.5

I Should have set component to standard UDF's. Sorry about that.