A few static helper members for
System.IO
.
- Namespace
- Songhay
- Base Types
-
- object
graph BT
Type-->Base0["object"]
Type["ProgramFileUtility"]
class Type type-node
Syntax
public static class ProgramFileUtility
Methods
Name | Return Value | Summary |
---|---|---|
Count |
int |
Counts the parent directory chars.
static
|
FindParentDirectory |
string |
Finds the parent directory.
static
|
Find |
DirectoryInfo? |
Finds the parent
DirectoryInfo .
static
|
GetCombinedPath |
string |
Combines path and root based
on the ambient value of
Path.DirectorySeparatorChar
of the current OS.static
|
GetCombinedPath |
string |
Combines path and root based
on the ambient value of
Path.DirectorySeparatorChar
of the current OS.static
|
GetEncodedString |
string |
Gets the encoded
string
from its default System.Text.Encoding.Unicode encoding.
static
|
GetEncodedString |
string |
Gets the UTF-8 encoded string from.
static
|
GetParentDirectory |
string |
Gets the parent directory.
static
|
Get |
DirectoryInfo? |
Gets the parent
DirectoryInfo .
static
|
GetRelativePath |
string |
Gets the relative path from the specified file segment
without leading dots (
. ) or Path.DirectorySeparatorChar chars.
static
|
IsForwardSlashSystem |
bool |
Returns
true when the current OS
uses forward-slash (/ ) paths or not.
static
|
NormalizePath |
string |
Normalizes the specified path with respect
to the ambient value of
Path.DirectorySeparatorChar .
static
|
Read |
void |
Read zip archive entries.
static
|
Read |
void |
Read zip archive entries.
static
|
Read |
void |
Read zip archive entries as strings, line by line.
static
|
Read |
void |
Read zip archive entries as strings, line by line.
static
|
Remove |
string |
Removes conventional Directory prefixes
for relative paths, e.g.
..\ or .\
static
|
Remove |
string |
Removes conventional Directory prefixes
for relative paths based on the ambient value\
of
Path.DirectorySeparatorChar .
static
|
Remove |
string |
Removes conventional Directory prefixes
for relative paths, e.g.
../ or ./ .
static
|
Trim |
string |
Trims the leading directory separator chars.
static
|
UseZipArchive |
void |
Centralizes the use of
ZipArchive
static
|
UseZipArchive |
void |
Centralizes the use of
ZipArchive
in ZipArchiveMode.Read .
static
|
UseZipArchiveEntries |
void |
Centralizes the use of
ReadOnlyCollection<T> .
static
|
UseZipArchiveEntries |
void |
Centralizes the use of
ReadOnlyCollection<T> .
static
|
WriteZipArchiveEntry |
void |
Write zip archive entry.
static
|
WriteZipArchiveEntry |
void |
Write zip archive entry with
CompressionLevel.Optimal .
static
|