Does anyone know of a program to do this?
Basically you have a folder on your computer
And subfolders inside of that
Possibly more subfolders in those
Some text file names + images in those
Is there a program that copies all of the structure hierarchy so I could import it into a program like workflowy?
Example file structure:
Example paste result in workflowy / dynalist
Example paste result in a .txt file
Or would anyone know what resources I could use to script this?
os.walk
os
it a standard python package that is also in Anaconda,os.walk
recursively traverses a directory tree in each sub-directory having aroot
,dirs
andfiles
list,root
being the path to the current directory being walked,dirs
a list of the directories in it andfiles
, you guessed, a list of the files in that directory. Very, very powerful and useful. It is also worth looking atglob.glob("**")
in python 3.5+