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

Allow loading multiple and default databases #5

Closed
robo9k opened this issue Dec 20, 2014 · 0 comments
Closed

Allow loading multiple and default databases #5

robo9k opened this issue Dec 20, 2014 · 0 comments
Assignees

Comments

@robo9k
Copy link
Owner

robo9k commented Dec 20, 2014

magic_load() allows to pass in NULL to load the default database or passing in a colon separated (e.g. /usr/share/misc/magic:~/magic/custom-db) list of database filenames.
The Rust API should allow those use cases.

One possibility would be using a Vec<Path> for the load() function where an empty vec means "load default database" and "load these databases" in the non-empty cases.
In that case the load_default() function should be removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant