X-Git-Url: http://www2.svjatoslav.eu/gitweb/?p=svjatoslav_commons.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fcommons%2Ffile%2FCommonPathResolver.java;h=bef34aaf58e941d7b0c0814365a551aeddb02d26;hp=d3c1f9ffd94f5c1217b73c672cf776767e5fa89c;hb=b34ba4499cfbca09bc794a810e460bf1c86dcd34;hpb=f2f5769996256492b3cd430a4c57b1317582b340 diff --git a/src/main/java/eu/svjatoslav/commons/file/CommonPathResolver.java b/src/main/java/eu/svjatoslav/commons/file/CommonPathResolver.java old mode 100644 new mode 100755 index d3c1f9f..bef34aa --- a/src/main/java/eu/svjatoslav/commons/file/CommonPathResolver.java +++ b/src/main/java/eu/svjatoslav/commons/file/CommonPathResolver.java @@ -1,10 +1,10 @@ /* * Svjatoslav Commons - shared library of common functionality. - * Copyright ©2012-2013, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu + * Copyright ©2012-2014, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2 of the GNU General Public License - * as published by the Free Software Foundation. + * modify it under the terms of version 3 of the GNU Lesser General Public License + * or later as published by the Free Software Foundation. */ package eu.svjatoslav.commons.file; @@ -43,7 +43,7 @@ public class CommonPathResolver { final String desktopPath = userHomePath + "/" + desktopName; final File possibleDesktopFile = new File(desktopPath); - if (desktopFile.exists()) { + if (possibleDesktopFile.exists()) { desktopFile = possibleDesktopFile; return desktopFile; }