/*
- * Svjatoslav Commons - shared library of common functionality.
- * Copyright (C) 2012, 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.
+ * Svjatoslav Commons - shared library of common functionality. Author: Svjatoslav Agejenko.
+ * This project is released under Creative Commons Zero (CC0) license.
*/
-
package eu.svjatoslav.commons.file;
import java.io.File;
public class CommonPathResolver {
- public static File getDesktopDirectory() {
- String desktopPath = System.getProperty("user.home") + "/Desktop";
-
- File desktopFile = new File(desktopPath);
- if (desktopFile.exists())
- return desktopFile;
-
- desktopPath = System.getProperty("user.home") + "/Рабочий стол";
-
- desktopFile = new File(desktopPath);
- if (desktopFile.exists())
- return desktopFile;
-
- return null;
- }
-
- public static File getHomeDirectory() {
- return new File(System.getProperty("user.home"));
- }
+ public static File getHomeDirectory() {
+ return new File(System.getProperty("user.home"));
+ }
}