#!/usr/local/python2.7/bin/python2.7
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
import os
paths = ['/fdfs_data/data/', '/fdfs_data/data1/']
alist=[]
total = 0
for path in paths:
for root, dirs, files in os.walk(path):
for file in files:
if file.endswith('jpg') or file.endswith('jpeg') or file.endswith('gif') or file.endswith('png') or file.endswith('bmp'):
if file not in file_list:
f = root + '/' + file
alist.append(f)