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

Skip hidden files #12465

Merged
merged 1 commit into from Jul 27, 2015
Merged

Skip hidden files #12465

merged 1 commit into from Jul 27, 2015

Conversation

xuzha
Copy link
Contributor

@xuzha xuzha commented Jul 26, 2015

Quick fix, skip hidden files when loading plugins. [https://github.com//issues/12433]

jpountz added a commit that referenced this pull request Jul 27, 2015
@jpountz jpountz merged commit 00ae4bb into elastic:master Jul 27, 2015
@jpountz
Copy link
Contributor

jpountz commented Jul 27, 2015

Thanks @xuzha !

@jpountz jpountz added >bug v2.0.0-beta1 :Core/Infra/Plugins Plugin API and infrastructure labels Jul 27, 2015
@rmuir
Copy link
Contributor

rmuir commented Jul 27, 2015

I do not think we should use Files.isHidden, anywhere in our code.

This is too specific to the OS environment. This should be looking for a match with .DS_Store or startsWith(".") but not looking at any os or filesystem-specific attributes.

If we start going this route, then things are going to get confusing quickly.

@jpountz
Copy link
Contributor

jpountz commented Jul 27, 2015

For the record, I merged this pull request because I saw we were already ignoring hidden files this way in other places, but I'm good with changing hidden file detection to startsWith(".").

I opened #12480

@clintongormley clintongormley changed the title skip hidden files Skip hidden files Jul 27, 2015
jpountz added a commit to jpountz/elasticsearch that referenced this pull request Jul 27, 2015
As Robert pointed out on elastic#12465, it has the undesirable property of relying on
the operating system. So it would be better to use a simple rule such as
checking whether the file name starts with a dot.
@jpountz jpountz mentioned this pull request Jul 27, 2015
@xuzha
Copy link
Contributor Author

xuzha commented Jul 27, 2015

That's a good point. Thanks Robert.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Core/Infra/Plugins Plugin API and infrastructure v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants