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

Start directory #9

Closed
cramdesign opened this issue Sep 9, 2019 · 1 comment
Closed

Start directory #9

cramdesign opened this issue Sep 9, 2019 · 1 comment

Comments

@cramdesign
Copy link

Could we create a setting variable that would allow the start directory to be other than the same directory as the php file?

@lorenzos
Copy link
Owner

lorenzos commented Sep 9, 2019

Thanks for this suggestion too 😃 I added a new $browseDefault configuration variable, but I didn't documented it since it's quite a "peculiar" use case, and anyway the comment is sufficient.

You can set it to the name of a subfolder or sub-subfolder (i.e. mydir or mydir/mysubdir), and the script will browse "by default" into it when called without the b parameter; however if theb parameter is present but empty (i.e. ?b=) the script will browse to the root directory (this is necessary to have a way to go up to the root). Remember that $browseDirectories has to be enabled to make this work.

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