Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search is case-sensitive #1

Open
ialexpw opened this issue Sep 17, 2021 · 1 comment
Open

Search is case-sensitive #1

ialexpw opened this issue Sep 17, 2021 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@ialexpw
Copy link
Owner

ialexpw commented Sep 17, 2021

Currently the search is case sensitive as it uses glob() - will look at altering this so it's no longer case sensitive as it makes it more difficult to search through files.

@ialexpw ialexpw added the enhancement New feature or request label Sep 17, 2021
@ialexpw ialexpw added the help wanted Extra attention is needed label Jun 10, 2022
@ialexpw
Copy link
Owner Author

ialexpw commented Jun 10, 2022

public static function rglob($pattern, $flags = 0) {
	$files = glob($pattern, $flags);

	foreach (glob(dirname($pattern) . '/*', GLOB_ONLYDIR|GLOB_NOSORT) as $dir) {
		$files = array_merge($files, Storio::rglob($dir . '/' . basename($pattern), $flags));
	}

	return $files;
}

Currently the above manages the searching of folders/files. Will be good to work around the case-sensitive issue. Will continue to look at this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant