def attach(self, path):
        self.__path = path
        
        entry = None

        try:
            if type(path) is list:
                mtime = 0
                for entry in path:
                    entryTime = os.stat(entry).st_mtime
                    if entryTime > mtime:
                        mtime = entryTime
                    
                self.mtime = mtime
        
            else:
                entry = path
                self.mtime = os.stat(entry).st_mtime
            
        except __HOLE__ as oserr:
            raise UserError("Invalid item path: %s" % entry)
        
        return self
dataset/ETHPy150Open zynga/jasy/jasy/item/Abstract.py/AbstractItem.attach