changed the way we get content-type during file upload.
[mir.git] / source / mir / misc / StringUtil.java
index 54d70c6..49004c1 100755 (executable)
@@ -256,6 +256,17 @@ public final class StringUtil {
   }
 
   /**
+   * Checks to see if the path is absolute by looking for a leading file
+   * separater
+   * @todo deal with windows drive letters.
+   * @param path
+   * @return
+   */
+  public static boolean isAbsolutePath (String path) {
+    return  path.startsWith(File.separator);
+  }
+
+  /**
    * Löscht Slash am Anfang des Strings
    * @param path
    * @return