Skip to content

Validate and correct erroneous folder paths values used by createfolders.py and applyfolderauthorization.py before their processing #259

Description

@tomstarr

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:

  1. 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.

  2. 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 createfolders.py fails to create folders with a trailing slash #179 to createfolders.py)

Many thanks.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions