This approach breaks on non-unix boxes. Why not use the same as the sink approach I used, and have a generated name? Then add utility method to FileSource to populate the file contents.