示例#1
0
    def __r_mod(ext, root=None):
        '''
        standard function
        return name and mtime
        REMAP

        @param string ext:    name
        @param string root:    pathname
        @return: tuple
        '''

        return ext, u_file_get_info(root, True)
示例#2
0
    def __r_add(self, ext, root=None):
        '''
        standard function
        return info to be added into database

        @param string ext:    name
        @param string root:    pathname
        @return: tuple
        '''

        tupl = u_file_get_info(root)
        return ext, self.idd, tupl[0], tupl[1], tupl[2], \
                                                str(u_file_hash(root))