Jump to content

Execute "cd some_dir" Allways got "No such file or directory" in my workflow.


Recommended Posts

When asking for help with a Workflow, please upload it somewhere as it’s otherwise difficult to give specific advice. Debugging can already be hard with access to the code, without it it’s even more complicated.


However you’re passing the folder’s name, you’re passing it with a newline at the end. That is why the debugger mentions:


'/Volumes/privite/image-download/
'


Instead of


'/Volumes/privite/image-download/'


You have to fix that, but I can’t be specific on the most efficient solution without knowing how the Workflow is built.


As an extra tip, avoid with input as {query}; you should be using with input as argv. The code would be cd "${1}".

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...