Show / Hide Table of Contents

Class PathTransformer

An implementation of INameTransform that transforms entry paths as per the Zip file naming convention. Strips path roots and puts directory separators in the correct format ('/')

Inheritance
System.Object
PathTransformer
Implements
INameTransform
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.Zip
Assembly: ICSharpCode.SharpZipLib.dll
Syntax
public class PathTransformer : INameTransform

Constructors

| Improve this Doc View Source

PathTransformer()

Initialize a new instance of PathTransformer

Declaration
public PathTransformer()

Methods

| Improve this Doc View Source

TransformDirectory(String)

Transform a windows directory name according to the Zip file naming conventions.

Declaration
public string TransformDirectory(string name)
Parameters
Type Name Description
System.String name

The directory name to transform.

Returns
Type Description
System.String

The transformed name.

| Improve this Doc View Source

TransformFile(String)

Transform a windows file name according to the Zip file naming conventions.

Declaration
public string TransformFile(string name)
Parameters
Type Name Description
System.String name

The file name to transform.

Returns
Type Description
System.String

The transformed name.

Implements

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