Skip to content

Commit

Permalink
Merge pull request #121 from nextcloud/perf/capabilities-files
Browse files Browse the repository at this point in the history
  • Loading branch information
provokateurin authored Apr 10, 2024
2 parents 57e66f0 + 79bd04f commit 0450537
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions generate-spec
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,9 @@ foreach ($capabilitiesDirs as $dir) {
$iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($dir));
foreach ($iterator as $file) {
$path = $file->getPathname();
if (!str_ends_with($path, ".php")) {
continue;
if (str_ends_with($path, "Capabilities.php")) {
$capabilitiesFiles[] = $path;
}
$capabilitiesFiles[] = $path;
}
}
sort($capabilitiesFiles);
Expand Down

0 comments on commit 0450537

Please sign in to comment.