Hi Mike,
The signature of the directory.copy call is [1]:
def copy (self, url_1, url_2=None, flags=0, ttype=None)
so in the way you use it, the 3rd parameter is interpreted as a flag,
not as a ttype (task type). saga.task.TASK is defined as an int, and
thus it passes the type check for flags. You probably want to use:
preSrcDir.copy(f, preDstDir.get_url(), ttype=saga.task.TASK)
Calling out the ttype parameter may be a good idea in general -- it
is usually the last parameter, and on many calls you would otherwise
get signature mismatches.
I want to add that running too many sftp commands concurrently in the
background may fail at some point: many systems limit the number of
open sftp connections. SAGA tries to be clever about connection
handling, but it still might run into troubles, depending on the
actual limits. We would be glad to get some feedback how this works
out for you! :)
HtH, and thanks, Andre.
PS: I think you have a typo in the preDstDir definition: "localhost%"
should probably be "localhost%s".
[1]
https://github.com/radical-cybertools/saga-python/blob/devel/src/saga/namespace/directory.py#L329
> --
> You received this message because you are subscribed to the Google Groups
> "saga-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
saga-users+...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.
--
99 little bugs in the code.
99 little bugs in the code.
Take one down, patch it around.
127 little bugs in the code...