pep8 fixes
This commit is contained in:
parent
f3ef66fcb3
commit
42202b901b
2 changed files with 12 additions and 10 deletions
2
setup.py
2
setup.py
|
@ -6,7 +6,7 @@ def read(fname):
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='sweeper',
|
name='sweeper',
|
||||||
version='0.2.0',
|
version='0.3.0',
|
||||||
author='Darko Poljak',
|
author='Darko Poljak',
|
||||||
author_email='darko.poljak@gmail.com',
|
author_email='darko.poljak@gmail.com',
|
||||||
description='Find duplicate files and perform action.',
|
description='Find duplicate files and perform action.',
|
||||||
|
|
|
@ -11,17 +11,18 @@ Arguments:
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
-h, --help show this screen
|
-h, --help show this screen
|
||||||
-b <blocksize>, --block-size=<blocksize> size of block used when reading file's
|
-b <blocksize>, --block-size=<blocksize> size of block used when reading
|
||||||
content [default: 4096]
|
file's content [default: 4096]
|
||||||
-d <hashalg>, --digest-alg=<hashalg> secure hash algorithm [default: md5]
|
-d <hashalg>, --digest-alg=<hashalg> secure hash algorithm [default: md5]
|
||||||
-a <action>, --action=<action> action on duplicate files
|
-a <action>, --action=<action> action on duplicate files (print,
|
||||||
(print, remove, move) [default: print]
|
remove, move) [default: print]
|
||||||
-m <directory>, --move=<directory> move duplicate files to directory
|
-m <directory>, --move=<directory> move duplicate files to directory
|
||||||
(used with move action) [default: ./dups]
|
(used with move action)
|
||||||
|
[default: ./dups]
|
||||||
"""
|
"""
|
||||||
|
|
||||||
__author__ = 'Darko Poljak <darko.poljak@gmail.com>'
|
__author__ = 'Darko Poljak <darko.poljak@gmail.com>'
|
||||||
__version__ = '0.2.0'
|
__version__ = '0.3.0'
|
||||||
__license__ = 'GPLv3'
|
__license__ = 'GPLv3'
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
|
@ -86,7 +87,8 @@ def rm_file_dups(topdirs=['./'], hashalg='md5', block_size=4096):
|
||||||
os.remove(f)
|
os.remove(f)
|
||||||
|
|
||||||
|
|
||||||
def mv_file_dups(topdirs=['./'], hashalg='md5', block_size=4096, dest_dir='dups'):
|
def mv_file_dups(topdirs=['./'], hashalg='md5', block_size=4096,
|
||||||
|
dest_dir='dups'):
|
||||||
"""Move duplicate files found in specified directory list.
|
"""Move duplicate files found in specified directory list.
|
||||||
First file in list is kept in the original directory.
|
First file in list is kept in the original directory.
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Reference in a new issue