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

Add getters and setters for base directory #3

Closed
stevekinney opened this issue Feb 22, 2016 · 1 comment
Closed

Add getters and setters for base directory #3

stevekinney opened this issue Feb 22, 2016 · 1 comment

Comments

@stevekinney
Copy link
Owner

As of 0.2.0, you can just change the .base property. It would be cool to put in a getter and setter method that would allow us to add additional hooks later for things (e.g. fire an event when the base directory was changed).

var fileBin = new FileBin('/some/directory')

console.log(fileBin.getBaseDirectory()); // --> /some/directory;

fileBin.setBaseDirectory('/new/base');

console.log(fileBin.getBaseDirectory()); // --> /new/base;
@matt-stj
Copy link
Contributor

@MattRooney and I will take this.

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

No branches or pull requests

2 participants