#Find-PnPFile Finds a file in the virtual file system of the web. ##Syntax
Find-PnPFile -Match <String>
[-Web <WebPipeBind>]
Find-PnPFile -List <ListPipeBind>
-Match <String>
[-Web <WebPipeBind>]
Find-PnPFile -Folder <FolderPipeBind>
-Match <String>
[-Web <WebPipeBind>]
##Returns
##Parameters
Parameter | Type | Required | Description |
---|---|---|---|
Folder | FolderPipeBind | True | Folder object or relative url of a folder to query |
List | ListPipeBind | True | List title, url or an actual List object to query |
Match | String | True | Wildcard query |
Web | WebPipeBind | False | The web to apply the command to. Omit this parameter to use the current web. |
##Examples |
###Example 1
PS:> Find-PnPFile -Match *.master
Will return all masterpages located in the current web.
###Example 2
PS:> Find-PnPFile -List "Documents" -Match *.pdf
Will return all pdf files located in given list.
###Example 3
PS:> Find-PnPFile -Folder "Shared Documents/Sub Folder" -Match *.docx
Will return all docx files located in given folder.