sassoftware / pyviyatools

Python command-line tools that call the SAS Viya REST APIs - for SAS administrators.
Apache License 2.0
38 stars 31 forks source link

Why not "createfolderjson.py" and "importfolders.py"? #197

Open AllanWTham opened 9 months ago

AllanWTham commented 9 months ago

Hi there,

Currently, there is an easy way to export caslibs and respective authorisation to a folder either using "createcaslibjson.py" or "exportcaslibs.py". Subsequently, use "importcaslibs.py" to import caslib and re-apply all authorisations.

Why not have the capability for folders? It would be so useful. Imagine now, that I can specify a root folder and then export from root and all its sub folders to csv (together with authorisation). I can then bring the csv file to another test system and re-import them.

gerrynelson63 commented 9 months ago

Hi @AllanWTham , we do have createfolders.py that creates folders from a csv.

For exporting, exportfolder.py and exportfoldertree.py will export the folder structure and also included content.

Are you looking for something that generates the csv file that createfolders.py accepts, from the folders in a Viya environment?

AllanWTham commented 9 months ago

Gerry,

Yes the output from the export should be easily ingested by createfolders.py if that makes sense without the need to further massage the data.