Skip to content
This repository was archived by the owner on Feb 7, 2023. It is now read-only.

Commit 8cfa071

Browse files
committed
making sure dots are skipped
1 parent b002387 commit 8cfa071

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

builder/lib/generator.lib.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ public function generate() {
3939

4040
// iterate over all of the other files in the source directory and move them if their modified time has changed
4141
$objects = new RecursiveIteratorIterator(new RecursiveDirectoryIterator(__DIR__."/../../source/"), RecursiveIteratorIterator::SELF_FIRST);
42+
43+
// make sure dots are skipped and that all returned paths are unix-y
44+
$objects->setFlags(FilesystemIterator::SKIP_DOTS);
45+
4246
foreach($objects as $name => $object) {
4347

4448
// clean-up the file name and make sure it's not one of the pattern lab files or to be ignored

0 commit comments

Comments
 (0)