#NEWLINE# @ classmethod #NEWLINE# def create( cls , folder ) : #NEWLINE# #INDENT# ' Walks a folder and create a TreeDigest for it, reading file contents\n        from disk, and capturing current time\n        ' #NEWLINE# file_dict = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for ( root , _ , files ) in os . walk ( folder ) : #NEWLINE# #INDENT# relative_path = os . path . relpath ( root , folder ) #NEWLINE# for f in files : #NEWLINE# #INDENT# abs_path = os . path . join ( root , f ) #NEWLINE# rel_path = os . path . normpath ( os . path . join ( relative_path , f ) ) #NEWLINE# rel_path = rel_path . replace ( '\\' , '/' ) #NEWLINE# file_dict [ rel_path ] = md5sum ( abs_path ) #NEWLINE# #UNINDENT# #UNINDENT# date = calendar . timegm ( time . gmtime ( ) ) #NEWLINE# from conans.paths import CONAN_MANIFEST , CONANFILE #NEWLINE# file_dict . pop ( CONAN_MANIFEST , None ) #NEWLINE# file_dict . pop ( ( CONANFILE + 'c' ) , None ) #NEWLINE# file_dict . pop ( '.DS_Store' , None ) #NEWLINE# file_dict = { key : value for ( key , value ) in file_dict . items ( ) if ( not key . startswith ( '__pycache__' ) ) } #NEWLINE# return cls ( date , file_dict )