Metadata-Version: 2.1
Name: cs.app.mklinks
Version: 20210401
Summary: Tool for finding and hardlinking identical files.
Home-page: https://bitbucket.org/cameron_simpson/css/commits/all
Author: Cameron Simpson
Author-email: cs@cskk.id.au
License: GNU General Public License v3 or later (GPLv3+)
Description: mklinks: tool for finding and hardlinking identical files
        
        *Latest release 20210401*:
        Major bugfix: subdirectory file paths were computed incorrectly.
        
        Mklinks walks supplied paths looking for files with the same content,
        based on a cryptographic checksum of their content. It hardlinks
        all such files found, keeping the newest version.
        
        Unlike some rather naive tools out there, mklinks only compares
        files with other files of the same size, and is hardlink aware - a
        partially hardlinked tree is processed efficiently and correctly.
        
        ## Class `FileInfo`
        
        Information about a particular inode.
        
        ### Method `FileInfo.__init__(self, dev, ino, size, mtime, paths=())`
        
        pylint: disable=too-many-arguments
        
        ### Method `FileInfo.assimilate(self, other, no_action=False)`
        
        Link our primary path to all the paths from `other`. Return success.
        
        ### Method `FileInfo.same_dev(self, other)`
        
        Test whether two FileInfos are on the same filesystem.
        
        ### Method `FileInfo.same_file(self, other)`
        
        Test whether two FileInfos refer to the same file.
        
        ### Method `FileInfo.stat_key(S)`
        
        Compute the key `(dev,ino)` from the stat object `S`.
        
        ## Class `Linker`
        
        The class which links files with identical content.
        
        ### Method `Linker.addpath(self, path)`
        
        Add a new path to the data structures.
        
        ### Method `Linker.merge(self, *a, **kw)`
        
        Merge files with equivalent content.
        
        ### Method `Linker.scan(self, *a, **kw)`
        
        Scan the file tree.
        
        ## Function `main(argv=None)`
        
        Main command line programme.
        
        ## Class `MKLinksCmd(cs.cmdutils.BaseCommand)`
        
        Main programme command line class.
        
        ### Method `MKLinksCmd.apply_defaults(self)`
        
        Set up the default values in `options`.
        
        ### Method `MKLinksCmd.apply_opts(self, opts)`
        
        Apply command line options.
        
        ### Method `MKLinksCmd.main(self, argv)`
        
        Usage: mklinks [-n] paths...
        Hard link files with identical contents.
        -n    No action. Report proposed actions.
        
        # Release Log
        
        
        
        *Release 20210401*:
        Major bugfix: subdirectory file paths were computed incorrectly.
        
        *Release 20210306*:
        Use cs.cmdutils.BaseCommand for main programme, add better progress reporting.
        
        *Release 20171228*:
        Initial PyPI release of cs.app.mklinks.
Keywords: python2,python3
Platform: UNKNOWN
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Description-Content-Type: text/markdown
