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

Tree structure export for exportfoldertree.py #152

Closed AllanWTham closed 1 year ago

AllanWTham commented 1 year ago

Hi there,

For exportfoldertree.py, is there a way to output in tree structure like Linux tree command?

├── setup.py ├── sharedfunctions.py ├── sharedfunctions.pyc ├── showsetup.py ├── snapshotreports.py ├── submit_jobdef.py ├── submit_jobreq.py ├── SUPPORT.md ├── templates │   ├── SAS_Email_Message_html.json │   └── SAS_Email_Message_text.json ├── testfolderaccess.py ├── unittestsadm33.sh ├── unittestsadm34.sh ├── unittestviya4.sh ├── updatedomain.py ├── updatepreferences.py ├── validateviya-manual.md └── validateviya.py

1 directory, 86 files -bash-4.2$

bruno-mueller-sas commented 1 year ago

You could use this command to do it: sas-viya folders list-members --path /your/SAS/folder --tree --recursive

AllanWTham commented 1 year ago

Hi Bruno,

Thanks got it. It works!