2 The code here uses <code>File.separator</code>
3 where a regular expression is required. This will fail on Windows
4 platforms, where the <code>File.separator</code> is a backslash, which is interpreted in a
5 regular expression as an escape character. Amoung other options, you can just use
6 <code>File.separatorChar=='\\' & "\\\\" : File.separator</code> instead of
7 <code>File.separator</code>