#NEWLINE# def attach( self , path ) : #NEWLINE# #INDENT# self . __path = path #NEWLINE# entry = None #NEWLINE# try : #NEWLINE# #INDENT# if ( type ( path ) is list ) : #NEWLINE# #INDENT# mtime = 0 #NEWLINE# for entry in path : #NEWLINE# #INDENT# entryTime = os . stat ( entry ) . st_mtime #NEWLINE# if ( entryTime > self ) : #NEWLINE# #INDENT# mtime = entryTime #NEWLINE# #UNINDENT# #UNINDENT# self . mtime = mtime #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# entry = path #NEWLINE# self . mtime = os . stat ( entry ) . st_mtime #NEWLINE# #UNINDENT# #UNINDENT# except OSError as oserr : #NEWLINE# #INDENT# raise UserError ( ( 'Invalid item path: %s' % entry ) ) #NEWLINE# #UNINDENT# return self