sassoftware / sassoftware/pyviyatools
Validate and correct erroneous folder paths values used by createfolders.py and applyfolderauthorization.py before their processing
@gerrynelson63 is already working on this.
Since Apr 22, 2026.
- Dominant language
- Python
- Stars
- 50
- Forks
- 42
- PR merge metrics
- No merged PRs in 30d
Description
Hi Gerry,
When you can, could you develop a couple of enhancements for applyfolderauthorization.py and createfolders.py please? It seems that the presence of trailing slashes, spaces and/or hidden chars on the end of folder paths all cause issues when creating folders or applying permissions using the Viya CLI. These enhancements would mitigate those 'gotchas' by regulating the quality of the input data.
Enhancements:
-
createfolders.py
Scan folder paths being fed in and strip off any surplus spaces and hidden characters between the final char of each folder path and the comma separator. -
applyfolderauthorization.py
Scan folder paths being fed in and strip off any surplus spaces and hidden characters between the final char of each folder path and the comma separator.
Scan folder paths being fed in and strip off any trailing slashes (the same enhancement that was previously implemented in #179 to createfolders.py)
Many thanks.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.