Skip to content

Commit 7e353dd

Browse files
Update filesystem_helper.php
1 parent 74e14ee commit 7e353dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

system/Helpers/filesystem_helper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,13 +260,13 @@ function get_dir_file_info(string $sourceDir, bool $topLevelOnly = true, bool $r
260260
try {
261261
$fp = opendir($sourceDir);
262262

263-
// reset the array and make sure $source_dir has a trailing slash on the initial call
263+
// reset the array and make sure $sourceDir has a trailing slash on the initial call
264264
if ($recursion === false) {
265265
$fileData = [];
266266
$sourceDir = rtrim(realpath($sourceDir), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
267267
}
268268

269-
// Used to be foreach (scandir($source_dir, 1) as $file), but scandir() is simply not as fast
269+
// Used to be foreach (scandir($sourceDir, 1) as $file), but scandir() is simply not as fast
270270
while (false !== ($file = readdir($fp))) {
271271
if (is_dir($sourceDir . $file) && $file[0] !== '.' && $topLevelOnly === false) {
272272
get_dir_file_info($sourceDir . $file . DIRECTORY_SEPARATOR, $topLevelOnly, true);

0 commit comments

Comments
 (0)