Search Results for

    Show / Hide Table of Contents

    Class PathUtility

    Collection of utility methods for working with the file system.

    Inheritance
    System.Object
    PathUtility
    Namespace: FM.LiveSwitch
    Assembly: FM.LiveSwitch.dll
    Syntax
    public static class PathUtility : object

    Methods

    CombinePaths(String, String)

    Combines two strings into a filesystem path.

    Declaration
    public static string CombinePaths(string path1, string path2)
    Parameters
    Type Name Description
    System.String path1
    System.String path2
    Returns
    Type Description
    System.String

    CombinePaths(String[])

    Combines the array of strings into a filesystem path.

    Declaration
    public static string CombinePaths(string[] paths)
    Parameters
    Type Name Description
    System.String[] paths
    Returns
    Type Description
    System.String

    CreateSymlink(String, String)

    Create a symlink.

    Declaration
    public static void CreateSymlink(string destinationPath, string linkPath)
    Parameters
    Type Name Description
    System.String destinationPath
    System.String linkPath

    Delete(String)

    Delete a file.

    Declaration
    public static void Delete(string path)
    Parameters
    Type Name Description
    System.String path

    GetAbsolutePath(String)

    Get the absolute file path of the given directory or file.

    Declaration
    public static string GetAbsolutePath(string path)
    Parameters
    Type Name Description
    System.String path
    Returns
    Type Description
    System.String

    GetTempPath()

    Returns the temporary directory location from the system.

    Declaration
    public static string GetTempPath()
    Returns
    Type Description
    System.String
    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.15.0