
Hmm, maybe I misunderstood the question. Opening (or constructing) a dir should have a uri as parameter, which is the initial pwd. (BTW: adding the constructors is on my TODO list I think - thanks for the remonder ;-) But what is about this case: dir d ("http://www.host.net/home/andre"); d.copy ("http://www.host.net/home/andre/test.dat", "./test.dat"); What is the target of the copy call relative to? As terry said, even more difficult for the relative remote case. Cheers, Andre. Quoting [Tom Goodale] (Aug 26 2005):
On Fri, 26 Aug 2005, Andre Merzky wrote:
6. In the very first call to a SAGA API, if the source or target is relative to a current working directory then where is the source or target current working directory set ? Particularly if the source is non-local.
Short answer: *shrug* ;-)
Long answer: it depends...
I was assuming the current working directory for an NSDir (well, a physical directory or a logical directory) would be set in its constructor, although looking at the spec I see that this is missing. Let me make it a proposal then 8-)
Tom
-- +-----------------------------------------------------------------+ | Andre Merzky | phon: +31 - 20 - 598 - 7759 | | Vrije Universiteit Amsterdam (VU) | fax : +31 - 20 - 598 - 7653 | | Dept. of Computer Science | mail: merzky@cs.vu.nl | | De Boelelaan 1083a | www: http://www.merzky.net | | 1081 HV Amsterdam, Netherlands | | +-----------------------------------------------------------------+