[#BloombergLP-bdls-FilesystemUtil-findMatchingPaths-0e]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/FilesystemUtil.adoc[FilesystemUtil]::findMatchingPaths
:relfileprefix: ../../../
:mrdocs:

Load into `result` all filesystem paths matching `pattern`&period;

== Synopsis

Declared in `&lt;bdls&lowbar;filesystemutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class STRING&lowbar;TYPE&gt;
static
int
findMatchingPaths(
    xref:bsl/vector-00d.adoc[bsl::vector&lt;bsl::string&gt;]* result,
    STRING&lowbar;TYPE const& pattern);
----

== Description

Same as the overload taking `const char &ast;`&period;

== Return Value

the number of paths matched on success, and a negative value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *result*
| receives the matching path names
| *pattern*
| glob&hyphen;style pattern to match
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
