diff --git a/base/src/main/java/de/staropensource/engine/base/utility/FileAccess.java b/base/src/main/java/de/staropensource/engine/base/utility/FileAccess.java index 6b8f5f863..99e287271 100644 --- a/base/src/main/java/de/staropensource/engine/base/utility/FileAccess.java +++ b/base/src/main/java/de/staropensource/engine/base/utility/FileAccess.java @@ -297,14 +297,48 @@ public final class FileAccess { // -----> File getters & setters /** * Returns the absolute path of this file. + *
+ * This method returns the path with + * {@code /} (slash) separators. * * @return absolute path + * @see #getPath() * @since v1-alpha8 */ public @NotNull String getPath() { return unformatPath(path); } + /** + * Returns the absolute path of this file. + *
+ * This method returns the path with + * {@code /} (slash) separators. + * + * @return absolute path + * @see #getPath() + * @since v1-alpha8 + */ + @Override + public @NotNull String toString() { + return getPath(); + } + + /** + * Returns the absolute path of this file. + *
+ * This method returns the path as seen + * by the operating system and JVM (i.e. + * with {@link File#separator} separators) + * + * @return absolute path + * @see #getPath() + * @since v1-alpha9 + */ + public @NotNull String getRawPath() { + return path.toString(); + } + /** * Returns the file name. *