Show / Hide Table of Contents

Class PathUtils

PathUtils provides simple utilities for handling paths.

Inheritance
System.Object
PathUtils
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ICSharpCode.SharpZipLib.Core
Assembly: ICSharpCode.SharpZipLib.dll
Syntax
public static class PathUtils

Methods

| Improve this Doc View Source

DropPathRoot(String)

Remove any path root present in the path

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

A System.String containing path information.

Returns
Type Description
System.String

The path with the root removed if it was present; path otherwise.

| Improve this Doc View Source

GetTempFileName(String)

Returns a random file name in the users temporary directory, or in directory of original if specified

Declaration
public static string GetTempFileName(string original = null)
Parameters
Type Name Description
System.String original

If specified, used as the base file name for the temporary file

Returns
Type Description
System.String

Returns a temporary file name

  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2000-2022 SharpZipLib Contributors