We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Sometimes it is required to run external command in a specific directory. At this moment it is required to do something like this
local cwd = fio.cwd() fio.chdir(path) pcall(popen.new, { cmd }) fio.chdir(cwd)
or if you are running with shell flag it could be done with less code
cmd = string.format('cd %s && %s', path, cmd) popen.new({ cmd }, { shell = true })
Would be nice to have cwd option so it all would look like this
popen.new({ cmd }, { cwd = path })
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Sometimes it is required to run external command in a specific directory. At this moment it is required to do something like this
or if you are running with shell flag it could be done with less code
Would be nice to have cwd option so it all would look like this
The text was updated successfully, but these errors were encountered: