Class FileSystemModuleHelper
Helper class for the File System Module.
Inheritance
System.Object
FileSystemModuleHelper
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: Phoenix.DeviceStorage
Assembly: Phoenix.Plugin.DeviceStorage.dll
Syntax
public static class FileSystemModuleHelper
Methods
View SourceBreakupPath(String)
Breaks a full path in the form of {Type}{Drive}{Path} into type, drive, and paths
Declaration
public static string[] BreakupPath(string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | The full path name of a FileSystemItemBase |
Returns
Type | Description |
---|---|
System.String[] | An array of the full path broken starting at index 0, following the order {Type}, {Drive}, {Path1}, {Path2},...{PathN}. Paths are empty if no match can be found. |
FindByName(String, IEnumerable<FileSystemItemBase>, Boolean)
Finds a FileSystemItemBase from a group of items based off of the name.
Declaration
public static FileSystemItemBase FindByName(string name, IEnumerable<FileSystemItemBase> items, bool ignoreCase)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the FileSystemItemBase. |
System.Collections.Generic.IEnumerable<FileSystemItemBase> | items | The items to which to search through. |
System.Boolean | ignoreCase | True if case should be ignored, false if not. |
Returns
Type | Description |
---|---|
FileSystemItemBase | The found FileSystemItemBase or null if it cannot be found. |
GenerateFullName(FileSystemItemBase)
Generates the full name for a FileSystemItemBase object.
Declaration
public static string GenerateFullName(FileSystemItemBase item)
Parameters
Type | Name | Description |
---|---|---|
FileSystemItemBase | item | The FileSystemItemBase object |
Returns
Type | Description |
---|---|
System.String | The full path name of the FileSystemItemBase object. Null if the item is null. |