Logo Search packages:      
Sourcecode: hardlink version File versions

def hardlink::File::may_link_to (   self,
  other 
)

Returns True if the file may be linked to another one.

If the files have the same hash (ie. at least same size and device),
and if the path of the files differs and if the size or more than 0,
and (if content=True) if the content is the same, the file may be
linked.

Definition at line 85 of file hardlink.py.

00085                                 :
        '''Returns True if the file may be linked to another one.

        If the files have the same hash (ie. at least same size and device),
        and if the path of the files differs and if the size or more than 0,
        and (if content=True) if the content is the same, the file may be
        linked.'''
        return (self.hash == other.hash and self.path != other.path and
                self.stat.st_size and self.same_content(other))

    def is_linked_to(self, other):


Generated by  Doxygen 1.6.0   Back to index