UtilFileSystem Class

Contains related FileSystem utilities.

Definition

Namespace: DevCase.Core.IO.FileSystem
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public sealed class UtilFileSystem
Inheritance
Object    UtilFileSystem

Methods

Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetItemVerbs Gets the available item verbs of the specified file or directory.
GetType Gets the Type of the current instance.
(Inherited from Object)
InvokeItemVerb(String, ItemVerbs) Invokes an item verb on the specified file or directory.
InvokeItemVerb(String, String) Invokes an item verb on the specified file or directory.
IsValidWindowsDirectoryPath Determines whether the specified directory path contains invalid Windows path characters.
IsValidWindowsFileName Determines whether the specified filename contains invalid Windows path characters.
IsValidWindowsFileNameOrDirectoryPath Determines whether the specified file-system name is a file name, a directory path or a full file path, then, determines whether the item contains invalid Windows file name or directory path characters.
MakeValidWindowsName Determines whether the specified file-system name is a file name, a directory path or a full file path, then, teplaces invalid Windows path characters in the file name or directory path.
ToString Returns a string that represents the current object.
(Inherited from Object)
WindowsPathToUri Converts a Microsoft Windows Path string to Uri.

For example, "C:\Music\100% Greatest Hits\Michael+Jackson\#1-Black Or White.mp3" returns a Uri object with AbsoluteUri value: "file:///C:/Music/100%25%20Greatest%20Hits/Michael+Jackson/%231-Black%20Or%20White.mp3".

WindowsPathToUri(String) function is provided because none of the Uri constructors correctly handles certain paths.

WindowsPathToUriPath Converts a Microsoft Windows Path string to a fully qualified URI file path.

For example, "C:\Music\100% Greatest Hits\Michael+Jackson\#1-Black Or White.mp3" is converted to: "file:///C:/Music/100%25%20Greatest%20Hits/Michael+Jackson/%231-Black%20Or%20White.mp3".

WindowsPathToUriPath(String) function is provided because none of the Uri constructors correctly handles certain paths.

Extension Methods

CanConvertTo Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
CanConvertToT Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
ConvertToT Converts an object to the specified target type.

If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions)

ConvertToT Converts an object to the specified target type.

If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions)

IsDisposable Determines whether the specified object is a disposable type (i.e., it implements IDisposable interface).
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
ThrowIfNullTException Throws the specified exception if the source object is null.
(Defined by ObjectExtensions)

See Also