Opened 14 years ago

Closed 14 years ago

#1228 closed Feature Request (Completed)

FTPEx.au3 missing callback parameter for some functions.

Reported by: Beege Owned by: Jpm
Milestone: Component: Standard UDFs
Version: Severity: None
Keywords: Cc:


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.


Attachments (2)

FTPEx Changes Request.rar (3.7 KB) - added by Beege 14 years ago.
_FTP_SetStatusCallback Example.au3 (5.9 KB) - added by anonymous 14 years ago.

Download all attachments as: .zip

Change History (10)

comment:1 Changed 14 years ago by Beege

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

comment:2 Changed 14 years ago by Jpm

  • Component changed from AutoIt to Standard UDFs
  • Owner set to Gary

can you post a script that make the callback being access?

About Doc I was what Wouter designer submitted.
As soon a workable solution of defining a callback function we will update it.

Changed 14 years ago by Beege

comment:3 Changed 14 years ago by Beege

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 Changed 14 years ago by Beege

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


comment:5 Changed 14 years ago by Jpm

Thanks for the changes.
But I miss a complete working example using _FTP_SetStatusCallBack() that I can include in the doc.

comment:6 Changed 14 years ago by Beege

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.

Changed 14 years ago by anonymous

comment:7 Changed 14 years ago by Beege

I did it again..
Line 99 is suppose to be $_ghCallback_FTP = $CallBack_Register

comment:8 Changed 14 years ago by Jpm

  • Milestone set to
  • Owner changed from Gary to Jpm
  • Resolution set to Completed
  • Status changed from new to closed

Added in version:

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The owner will remain Jpm.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.