[#BloombergLP-bdls-FilesystemUtil-findMatchingPaths-065e]
= 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;

== Synopses

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

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/bdls/FilesystemUtil/findMatchingPaths-065c.adoc[findMatchingPaths](
    xref:bsl/vector-00d.adoc[bsl::vector&lt;bsl::string&gt;]* result,
    char const* pattern);
----

[.small]#xref:BloombergLP/bdls/FilesystemUtil/findMatchingPaths-065c.adoc[_» more&period;&period;&period;_]#

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/bdls/FilesystemUtil/findMatchingPaths-0ff.adoc[findMatchingPaths](
    std::pmr::vector&lt;std::pmr::string&gt;* result,
    char const* pattern);
----

[.small]#xref:BloombergLP/bdls/FilesystemUtil/findMatchingPaths-0ff.adoc[_» more&period;&period;&period;_]#

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/bdls/FilesystemUtil/findMatchingPaths-09.adoc[findMatchingPaths](
    std::vector&lt;std::string&gt;* result,
    char const* pattern);
----

[.small]#xref:BloombergLP/bdls/FilesystemUtil/findMatchingPaths-09.adoc[_» more&period;&period;&period;_]#

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


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

[.small]#xref:BloombergLP/bdls/FilesystemUtil/findMatchingPaths-0e.adoc[_» more&period;&period;&period;_]#

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class STRING&lowbar;TYPE&gt;
static
int
xref:BloombergLP/bdls/FilesystemUtil/findMatchingPaths-0fc.adoc[findMatchingPaths](
    std::pmr::vector&lt;std::pmr::string&gt;* result,
    STRING&lowbar;TYPE const& pattern);
----

[.small]#xref:BloombergLP/bdls/FilesystemUtil/findMatchingPaths-0fc.adoc[_» more&period;&period;&period;_]#

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


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

[.small]#xref:BloombergLP/bdls/FilesystemUtil/findMatchingPaths-0d.adoc[_» more&period;&period;&period;_]#

== Return Value

* 0 on success, and a non&hyphen;zero value otherwise
* 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]#
