Skip to content

Instantly share code, notes, and snippets.

@leafduo
Created June 2, 2013 09:07
Show Gist options
  • Select an option

  • Save leafduo/5693098 to your computer and use it in GitHub Desktop.

Select an option

Save leafduo/5693098 to your computer and use it in GitHub Desktop.
path_list = ['user/moshin/a.py', 'user/moshin/b.py', 'user/haha.py', 'user/leafduo/hehe.py']
tree = {'user':[{'moshin':['a.py', 'b.py']}, 'haha.py', {'leafduo':['hehe.py']}]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment