Posted By

buscarini on 07/17/06


Tagged

desarrollo fichero directorio


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

anayhk
carlosabargues


Recorrer un sistema de ficheros


 / Published in: Python
 

  1. import os
  2.  
  3. def callback(arg,directory,files):
  4. for f in files:
  5. print os.path.join(directory,f),repr(arg)
  6.  
  7.  
  8. os.path.walk(".",callback,"mensaje")

Report this snippet  

You need to login to post a comment.