Search Results for

    Show / Hide Table of Contents

    Class PathUtils

    Inheritance
    Object
    PathUtils
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Acoustics.Shared
    Assembly: Acoustics.Shared.dll
    Syntax
    public static class PathUtils

    Methods

    | Improve this Doc View Source

    GetShortFilename(String)

    Gets the short 8.3 filename for a file.

    Declaration
    public static string GetShortFilename(string path)
    Parameters
    Type Name Description
    String path

    The path to convert.

    Returns
    Type Description
    String

    An 8.3 filename extracted from kernel32.dll.

    Remarks

    If the current platform is not Windows based this function will simply return the given input path without modification. If the supplied path is null or whitespace it will be again returned without modification.

    Exceptions
    Type Condition
    FileNotFoundException

    If the requested file does not exist.

    | Improve this Doc View Source

    HasUnicodeOrUnsafeChars(String)

    Detects whether the given path has unsafe or unicode characters in it.

    Declaration
    public static bool HasUnicodeOrUnsafeChars(string path)
    Parameters
    Type Name Description
    String path

    The path string to check.

    Returns
    Type Description
    Boolean

    Returns True if the given path contains unsafe or unicode characters.

    Remarks

    Searches for control characters, characters above 0x7F, and any characters in GetInvalidPathChars().

    • Improve this Doc
    • View Source
    In This Article
    Generated by DocFX AP docs version: 21.7.0.4-master-e26127a50d7bd7472d47288f10e61014fb981f7f-DIRTY-CI:144 Back to top