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

Fix path resolution of the directory whose name included glob special chars #230

Merged
merged 3 commits into from
Jun 8, 2020

Conversation

yhatt
Copy link
Member

@yhatt yhatt commented Jun 8, 2020

Similar to #117 but it's for the directory path. Fix #227.

;(await globby(globs, gOpts)).forEach((p) => filepaths.add(p))

for (const cwd of dirs) {
;(await globby('.', { cwd, ...gOpts })).forEach((p) => filepaths.add(p))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expanding file patterns won't work in escaped glob path so we are using cwd option to specify the base directory.

@yhatt yhatt merged commit 17db39a into master Jun 8, 2020
@yhatt yhatt deleted the resolve-real-dir branch June 8, 2020 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Server Mode will not start if absolute path to presentation contains opening parentheses (
1 participant