Logo Search packages:      
Sourcecode: hardlink version File versions

def hardlink::File::same_content (   self,

Return whether to files have identical content

Definition at line 74 of file hardlink.py.

00074                                  :
        '''Return whether to files have identical content'''
        if self.opts.verbose >= 2:
            print 'Comparing', self.path, 'to', other.path
        self.linker.compared += 1
            return filecmp.cmp(self.path, other.path, 0)
        except EnvironmentError, exc:
            print 'Error: Comparing %s to %s failed' % (self.path, other.path)
            print '      ', exc

    def may_link_to(self, other):

Generated by  Doxygen 1.6.0   Back to index