com.ansys.ingress.client.api.utils

## Class PathUtils

- java.lang.Object
- - com.ansys.ingress.client.api.utils.PathUtils

-     public class PathUtils
      extends java.lang.Object

  PathUtils provides methods to manipulate and query EKM repository paths.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static java.lang.String` | `REPOSITORY_PATH` Path to primary folder in the repository.

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `PathUtils()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static java.lang.String` | `fixUpPath(java.lang.String path, java.lang.String username)` Fixes up paths that start in the user's "My Data" folder.
    `static java.lang.String` | `getEkmDataDirectory()`
    `static java.lang.String` | `getMyDataFolder(java.lang.String username)` Gets the path to the current user's "My Data" folder.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### REPOSITORY_PATH

          public static final java.lang.String REPOSITORY_PATH

      Path to primary folder in the repository.
      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### PathUtils

          public PathUtils()

  - ### Method Detail

    - #### fixUpPath

          public static java.lang.String fixUpPath(java.lang.String path,
                                                   java.lang.String username)

      Fixes up paths that start in the user's "My Data" folder.
      Parameters:
        `path` - the path to fix up.
        `username` - the name of the user that owns the "My Data" folder
      Returns:
        Returns the actual path if the path starts in "My Data". Otherwise, returns the unaltered path.

    - #### getMyDataFolder

          public static java.lang.String getMyDataFolder(java.lang.String username)

      Gets the path to the current user's "My Data" folder.
      Parameters:
        `username` - the name of the user that owns the "My Data" folder
      Returns:
        Returns the path.

    - #### getEkmDataDirectory

          public static java.lang.String getEkmDataDirectory()

      Returns:
        Returns the path where the EKM client API can write files.