login about faq

Are any events fired by the CreatePlan method that could be used to filter the plan created before using it to call PutPlan ?

Say I wanted to generate a plan for a directory but filter out certain files and one or more sub directories, and use the feature of PutPlan to resume where it left off if an upload failed by passing in the processed file list it creates.

I know I could use PutTree to do this with the OnBeginFileUpload event to skip a given file, and manage the successfully uploaded file list myself or use the OnVerifyUploadDirectory called by PutPlan to skip whole sub directories, but it doesn't appear that I can tell PutPlan to skip an individual file(s).

asked Nov 06 '12 at 12:39

cody's gravatar image


Cody, I'll investigate to see what can be done, and if these callbacks can be added for the next version (and provided as a pre-release).


answered Nov 07 '12 at 08:30

chilkat's gravatar image

chilkat ♦♦

Thank you for the quick response. Just to be clear, I think all that would be required is for an event to be raised by CreatePlan that allowed you to tell it to skip a given file and not add it to the plan list. If you were thinking something else, let me know. Thanks!

(Nov 07 '12 at 16:01) cody


I made the changes to CreatePlan with the proper events wired. What build do you need? (programming language, operating system, Visual Studio Version, .NET Framework, 32/64-bit, etc.)

(Nov 08 '12 at 10:11) chilkat ♦♦

Very cool! I'm currently using the VB.Net dll's for both .Net Framework 2.0/3.5 and 4.0, 32 bit.

(Nov 08 '12 at 10:58) cody

Here's a new .NET 2.0/3.5 build: http://www.chilkatsoft.com/preRelease/ChilkatDotNet2.zip

The .NET 4.0 build will come later today, hopefully after you've confirmed that all is OK.

(Nov 08 '12 at 11:37) chilkat ♦♦


I've verified that the events (OnBeginUploadFile and OnVerifyUploadDir) are called by CreatePlan and that the args.skip = true does cause it to build a plan allowing me to skip whole directories and/or files matching a pattern. I also verfied that PutPlan correct uploads the plan listing.

I believe that I saw somewhere in the documentation that the OnVerifyUploadDir event would or could be called twice for each subdirectory for other methods. and for the CreatePlan method I see this occurring and wanted make sure that's the behavior you expect.

(Nov 08 '12 at 16:14) cody

Cody, yes you're correct about the OnVerifyUploadDir being called twice. Let's say you have a directory tree like this:


The 1st call to OnVerifyUploadDir for "dirA" is to determine the files within "dirA" or sub-directories under "dirA" should be traversed. The 2nd call is to determine if the empty "dirA" directory itself should be created on the server.


answered Nov 08 '12 at 18:14

chilkat's gravatar image

chilkat ♦♦

PS> I'll start a .NET 4.0 build tonight and upload later, and then post here when it's ready.

Best Regards, Matt

(Nov 08 '12 at 18:15) chilkat ♦♦
(Nov 08 '12 at 22:19) chilkat ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Nov 06 '12 at 12:39

Seen: 813 times

Last updated: Nov 08 '12 at 22:19

powered by OSQA