WindowsNameTransform transforms ZipFile names to windows compatible ones.
More...
|
| static bool | IsValidName (string name) |
| | Test a name to see if it is a valid name for a windows filename as extracted from a Zip archive.
|
| static string | MakeValidName (string name, char replacement) |
| | Force a name to be valid by replacing invalid characters with a fixed value.
|
|
| string | BaseDirectory [get, set] |
| | Gets or sets a value containing the target directory to prefix values with.
|
| bool | TrimIncomingPaths [get, set] |
| | Gets or sets a value indicating wether paths on incoming values should be removed.
|
| char | Replacement [get, set] |
| | Gets or set the character to replace invalid characters during transformations.
|
WindowsNameTransform transforms ZipFile names to windows compatible ones.
◆ WindowsNameTransform() [1/3]
| ICSharpCode.SharpZipLib.Zip.WindowsNameTransform.WindowsNameTransform |
( |
string | baseDirectory | ) |
|
◆ WindowsNameTransform() [2/3]
| ICSharpCode.SharpZipLib.Zip.WindowsNameTransform.WindowsNameTransform |
( |
| ) |
|
◆ WindowsNameTransform() [3/3]
| ICSharpCode.SharpZipLib.Zip.WindowsNameTransform.WindowsNameTransform |
( |
| ) |
|
|
staticprivate |
Initialise static class information.
◆ IsValidName()
| bool ICSharpCode.SharpZipLib.Zip.WindowsNameTransform.IsValidName |
( |
string | name | ) |
|
|
static |
Test a name to see if it is a valid name for a windows filename as extracted from a Zip archive.
- Parameters
-
- Returns
- Returns true if the name is a valid zip name; false otherwise.
The filename isnt a true windows path in some fundamental ways like no absolute paths, no rooted paths etc.
◆ MakeValidName()
| string ICSharpCode.SharpZipLib.Zip.WindowsNameTransform.MakeValidName |
( |
string | name, |
|
|
char | replacement ) |
|
static |
Force a name to be valid by replacing invalid characters with a fixed value.
- Parameters
-
| name | The name to make valid |
| replacement | The replacement character to use for any invalid characters. |
- Returns
- Returns a valid name
◆ TransformDirectory()
| string ICSharpCode.SharpZipLib.Zip.WindowsNameTransform.TransformDirectory |
( |
string | name | ) |
|
◆ TransformFile()
| string ICSharpCode.SharpZipLib.Zip.WindowsNameTransform.TransformFile |
( |
string | name | ) |
|
◆ _baseDirectory
| string ICSharpCode.SharpZipLib.Zip.WindowsNameTransform._baseDirectory |
|
private |
◆ _replacementChar
| char ICSharpCode.SharpZipLib.Zip.WindowsNameTransform._replacementChar = '_' |
|
private |
◆ _trimIncomingPaths
| bool ICSharpCode.SharpZipLib.Zip.WindowsNameTransform._trimIncomingPaths |
|
private |
◆ InvalidEntryChars
| readonly char [] ICSharpCode.SharpZipLib.Zip.WindowsNameTransform.InvalidEntryChars |
|
staticprivate |
◆ MaxPath
| const int ICSharpCode.SharpZipLib.Zip.WindowsNameTransform.MaxPath = 260 |
|
staticprivate |
The maximum windows path name permitted.
This may not valid for all windows systems - CE?, etc but I cant find the equivalent in the CLR.
◆ BaseDirectory
| string ICSharpCode.SharpZipLib.Zip.WindowsNameTransform.BaseDirectory |
|
getset |
Gets or sets a value containing the target directory to prefix values with.
◆ Replacement
| char ICSharpCode.SharpZipLib.Zip.WindowsNameTransform.Replacement |
|
getset |
Gets or set the character to replace invalid characters during transformations.
◆ TrimIncomingPaths
| bool ICSharpCode.SharpZipLib.Zip.WindowsNameTransform.TrimIncomingPaths |
|
getset |
Gets or sets a value indicating wether paths on incoming values should be removed.
The documentation for this class was generated from the following file: