[Swift-user] Absolute Path Question

Sheri Mickelson mickelso at mcs.anl.gov
Tue Dec 3 07:22:28 CST 2013


I modified the swift "hello world" example to include an absolute path:

=================================

type messagefile;  
  
app (messagefile t) greeting () {  
        echo "Hello, world!" stdout=@filename(t);  
}  
  
message file outfile <"/homes/user/test/my/output/is/here/hello.txt">;  
  
outfile = greeting();


=================================

I noticed that if "/homes/user/test/my/output/is/here/" doesn't exist, the directory is created for you.  Is there a Swift option to override this and have the swift code fail if "/homes/user/test/my/out/is/here/" doesn't exist?

Thanks, Sheri


More information about the Swift-user mailing list