2 * Svjatoslav Commons - shared library of common functionality.
3 * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of version 2 of the GNU General Public License
7 * as published by the Free Software Foundation.
10 package eu.svjatoslav.commons.file;
14 public class CommonPathResolver {
16 public static File getDesktopDirectory() {
17 String desktopPath = System.getProperty("user.home") + "/Desktop";
19 File desktopFile = new File(desktopPath);
20 if (desktopFile.exists())
23 desktopPath = System.getProperty("user.home") + "/Рабочий стол";
25 desktopFile = new File(desktopPath);
26 if (desktopFile.exists())
32 public static File getHomeDirectory() {
33 return new File(System.getProperty("user.home"));