Be sure to review our Idea Submission Guidelines for more information!
Submission GuidelinesHello,
Recently I have been working with directory tools to pick up specific files based on where the workflow is running from.
For an example to help illustrate my idea/fix, I have a folder on my desktop called 'Idea', I have a simple workflow and a couple csv files:
I have my directory tool setup pointing at this folder - to pick up all three csv files:
Now i want to make the path relative. Currently the workflow is saved within this folder, so in order to pick up all files in this location, as expected i would want the directory to be changed to "." (for reference, https://desktop.arcgis.com/en/arcmap/latest/tools/supplement/pathnames-explained-absolute-relative-u... ).
To make the paths relative, I use Options --> Advanced Options --> Workflow Dependencies
I can then see my paths/dependencies:
And hit 'all relative':
It has changed to '.' as required, great. However when i hit okay and try to run the workflow:
In order to get this to work, i have to add a "/" to the "." - making it "./".
This may seem like a small pain, however if a user does not understand relative paths, its not clear the difference between "./" and "." .
My suggestion would be either:
1) Directory tools with relative paths to the location are set to "./"
2) MakeCleanPath() function (backend of the tool) is changed to allow for relative paths to the same location using "." .
Cheers,
TheOC
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.