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

Do not add quotes for input filename, breaks plenty of file paths #87

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

anselanza
Copy link

As per #78 there are problems whenever spaces (and probably many other characters) are used in filenames. I don't see the need to "add quotes" for file paths, particularly if these are coming from a properly-formed string as would be the case with path.resolve("./some/folder/file with spaces etc.mp4".

In any case, the utils.addQuotes function currently uses JSON.stringify which is surely not intended for this use case. We don't want JSON, we want a path to pass to the command line.

I don't have access Windows machine now so I can't test whether this breaks anything on Windows, but I would assume path.resolve should give a perfectly valid filename path as a string, too.

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

Successfully merging this pull request may close these issues.

1 participant