Search Results for

    Show / Hide Table of Contents

    Interface IDirectoryWrapper

    Directory wrapper providing methods for working with directories.

    Namespace: LemonEdge.DesktopTools.Wrappers.Interfaces
    Assembly: LemonEdge.DesktopTools.dll
    Syntax
    public interface IDirectoryWrapper

    Methods

    GetFiles(string, string)

    Gets an array of file names in the specified directory that match the specified search pattern.

    Declaration
    string[] GetFiles(string path, string searchPattern)
    Parameters
    Type Name Description
    string path

    The path of the directory to search.

    string searchPattern

    The search pattern to match against the names of files in the directory.

    Returns
    Type Description
    string[]

    An array of the full names (including paths) of files that match the specified search pattern.

    GetFiles(string, string, SearchOption)

    Gets an array of file names in the specified directory that match the specified search pattern and search option.

    Declaration
    string[] GetFiles(string path, string searchPattern, SearchOption searchOption)
    Parameters
    Type Name Description
    string path

    The path of the directory to search.

    string searchPattern

    The search pattern to match against the names of files in the directory.

    SearchOption searchOption

    One of the enumeration values that specifies whether the search operation should include all subdirectories or only the current directory.

    Returns
    Type Description
    string[]

    An array of the full names (including paths) of files that match the specified search pattern and option.

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.