+def whole_tree(prefix, path):
+ files = []
+ for f in (f for f in os.listdir(os.path.join(prefix, path)) if not f[0]=='.'):
+ new_path = os.path.join(path, f)
+ if os.path.isdir(os.path.join(prefix, new_path)):
+ files.extend(whole_tree(prefix, new_path))
+ else:
+ files.append(new_path)
+ return files
+
+