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

Mike Kubal mikekubal at yahoo.com
Fri Apr 25 10:37:36 CDT 2008


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/swift-devel/attachments/20080425/913fd0d0/attachment.html>


More information about the Swift-devel mailing list