Re: new File(parent, child) when child is absolute

2013-04-27 Thread Weijun Wang
On 4/27/13 3:34 PM, Alan Bateman wrote: On 27/04/2013 04:14, Weijun Wang wrote: I thought that in this case parent is just ignored and it's still the child itself. Turns out this is not true, and new File(/tmp, /etc/passwd) is /tmp/etc/passwd Is this really useful in any way? I agree

new File(parent, child) when child is absolute

2013-04-26 Thread Weijun Wang
I thought that in this case parent is just ignored and it's still the child itself. Turns out this is not true, and new File(/tmp, /etc/passwd) is /tmp/etc/passwd Is this really useful in any way? Thanks Max