How to compare to directories?

Gabriel Genellina gagsl-py at yahoo.com.ar
Wed Sep 13 04:03:19 EDT 2006


At Wednesday 13/9/2006 03:09, could.net at gmail.com wrote:

>I want to compare 2 directories: dir1 and dir2.
>What I want to do is to get these informations:
>1. does they have the same number of files and sub-directories?
>2. does each file with the same name have the same size and date
>information?

Look at filecmp.dircmp in the standard library


Gabriel Genellina
Softlab SRL 


	
	
		
__________________________________________________
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya! 
http://www.yahoo.com.ar/respuestas




More information about the Python-list mailing list