GITLAB

qijun / newdist

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • newdist
  • ControlUI
  • app
  • helper.py
  • 1f1943eb   initial commit Browse Code ยป
    qijun
    2016-01-06 21:41:27 +0800  
helper.py 335 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
import os


def get_fileslist(path):
	files_list = []
	list_dirs = os.walk(path)
	for root, dirs,files in list_dirs:
		for f in files:
			files_list.append(os.path.join(root,f))

	return files_list

def get_ziplist(files_list):
	basename_list = map(lambda s: os.path.basename(s), files_list)
	return zip(basename_list, files_list)