Methods

  • Creates a folder and all non-existent parent folder.

    Parameters

    • folderPath: string

      The path of the folder to create.

    Returns Promise<void>

  • Deletes a folder.

    Parameters

    • folderPath: string

      The path of the folder to delete.

    Returns Promise<void>

  • Searches a folder and all sub-folders for files and folders that match the search term.

    Parameters

    • folderPath: string

      The path of the folder to search.

    • searchTerm: string

      The search string to match against the names of files and folders. This parameter can contain a combination of valid literal path and wildcard (* and ?) characters, but it doesn't support regular expressions.

    • includeSubFolders: boolean = false

      Use true to include the current folder and all its subfolders in the search operation. This includes reparse points such as mounted drives and symbolic links.

      Use false (default) to include only the top folder in the search.

    Returns Promise<string[]>

    A list of file and folder paths.