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

Modify FileValidator extension checking to be more generic #2149

Closed
peterfpeterson opened this issue Jun 7, 2010 · 1 comment
Closed

Modify FileValidator extension checking to be more generic #2149

peterfpeterson opened this issue Jun 7, 2010 · 1 comment
Assignees
Labels
Low Priority Things that you don't ever want to be done.
Milestone

Comments

@peterfpeterson
Copy link
Member

Rather than looking for the extension to be the stuff after the final ".", have it look for the file ending. This way things that have double extensions (i.e. .tar.gz, .hdf.nxs) as well as extensions that don't start with "." (i.e. _neutron_event.dat, _pulseid.dat) can be matched against. The functionality is similar to python's endswith is the correct analogy. For filters that still want to have an extension start with a ".", they can just add it to the specification of the filter. Most users won't notice that the "." is no longer required.

@peterfpeterson peterfpeterson added the Low Priority Things that you don't ever want to be done. label Jun 3, 2015
@peterfpeterson peterfpeterson self-assigned this Jun 3, 2015
@peterfpeterson peterfpeterson added this to the Iteration 24 milestone Jun 3, 2015
@peterfpeterson
Copy link
Member Author

This issue was originally trac ticket 1302

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Low Priority Things that you don't ever want to be done.
Projects
None yet
Development

No branches or pull requests

1 participant