[Swift-devel] problems with external dependencies

Ben Clifford benc at hawaga.org.uk
Tue Mar 24 04:30:27 CDT 2009


On Mon, 23 Mar 2009, Michael Wilde wrote:

> out = ls("datadir/", sync);

This ls needs an absolute path - when it runs, it is in its own jobdir 
which (deliberately) has none of the other files staged in.

You need to specify the absolute path to your data directory there.

One way to think of it is: rather than calling the directory 'sync', you 
coul call it 'myDataDir' - that external variable represents the external 
directory being created and passed around. But, because you have declared 
that data 'external' that means Swift will never attempt to put you in the 
right directory for access to that data or prepare any input files for you 
or anything like that (indeed, your external data might not even be file 
based - this was originally implemented for someone who wanted to do 
database access, I think)

-- 




More information about the Swift-devel mailing list