9 Dec
2015
9 Dec
'15
9:52 a.m.
Le 09/12/2015 10:36, Tony Chemit a écrit :
Short answer no, since you don't give the code just above this one which is
if (!dir.exist()) ...
Or we could reverse condition: if (!dir.mkdirs()) { if (!dir.exist()) { throw new IOException("Could not create directory " + dir); } } But, i think the second if() condition could never trigger because the first dir.mkdirs() will throw a root IOException. -- Éric Chatellier - www.codelutin.com - 02.40.50.29.28