#coding:utf-8
import os
import shutil
def main():
while True:
filepath = 'E:/phpstudy_pro/WWW/plugins/'
for parent, dirnames, filenames in os.walk(filepath, followlinks=True):
#print (filenames)
for filename in filenames:
if filename=='imtest.zip':
shutil.copy(filepath+filename,'d:/')
print ('------------>ok')
else:
pass
if __name__ == '__main__':
main()