Inconsistent behavior with Synchronous calls

Aug 7, 2013 at 6:41 PM
Edited Aug 12, 2013 at 5:41 PM
Hello,

I am using the following calls:
  1. UploadFile
  2. DeleteFile
  3. DeleteFolder
  4. Exists
  5. CreateDirectory - works
  6. ChangePermissions - works
However, I am getting inconsistent results. Does it have anything to do with my connection info settings? Does it have anything to do with "having to do it asynchronously instead"?

My code is pretty simple - Need to be able to copy a file, as well as delete files and folders, but like I said, the behavior is not consistent and the documentation is pretty weak.

Should I forget the synchronous calls and go with asynchronous calls instead???

Also, I was hoping for an "IsBusy" method to check before I call disconnect and dispose, but no such luck. Are the synchronous calls REALLY synchronous?

Any help???

THANKS!
Aug 7, 2013 at 7:49 PM
Actually, I'm trying to figure out what the path should be that I provide into the Exists call. It seems that's what choking.

I'm giving it:

/abc/dadada/XYZ/20130807/Num_1310000840_Id_1190172.xml

What's wrong with that? It keeps saying "System.NotSupportedException: Strings longer than 2147483647 is not supported."