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
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 SourcePathTransformer()
Initialize a new instance of PathTransformer
Declaration
public PathTransformer()
Methods
| Improve this Doc View SourceTransformDirectory(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. |
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. |