Basically,
- if the posix path of the currently selected item in Finder is a folder, leave as is
- if the posix path of the currently selected item in Finder is a file, remove the filename and keep the path of the parent folder
thank you very much !
Basically,
thank you very much !
And there is also the Split path action.
You can use an If action set to test At this path: A file exists.