[Swift-devel] code to test for file existence in swift

Ben Clifford benc at hawaga.org.uk
Fri Apr 25 10:45:41 CDT 2008


What you might want there is for bug 107 to get fixed, at which point 
there would be a restart mechanism that would do this sort of thing for 
you.

http://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=107


On Fri, 25 Apr 2008, Mike Kubal wrote:

> I was running a job that did not finish due to my grid-proxy expiring (I should have set it longer in the first place) that iterates through 670 input files. I wanted to add some code to my swift script that would check to see if the corresponding output file existed so as not to resubmit when iterating through the input files.
> 
> if(results_file exist){ print("done already")}
> else{run job(input_file)}
> 
> Mihael Hategan <hategan at mcs.anl.gov> wrote: Can you provide more details about the scenario?
> In principle, no such facilities exist (or should exist) in swift.
> 
> Mihael
> 
> On Fri, 2008-04-25 at 08:08 -0700, Mike Kubal wrote:
> > Could someone suggest swift code for testing for the
> > existence of a file?
> > 
> > Thanks,
> > 
> > Mike
> > 
> > 
> >       ____________________________________________________________________________________
> > Be a better friend, newshound, and 
> > know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> > _______________________________________________
> > Swift-devel mailing list
> > Swift-devel at ci.uchicago.edu
> > http://mail.ci.uchicago.edu/mailman/listinfo/swift-devel
> > 
> 
> _______________________________________________
> Swift-devel mailing list
> Swift-devel at ci.uchicago.edu
> http://mail.ci.uchicago.edu/mailman/listinfo/swift-devel
> 
> 
> 
>        
> ---------------------------------
> Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.



More information about the Swift-devel mailing list