Skip to content


Subversion checkout URL

You can clone with
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: meitham/albumiser
base: c89e34f23d
head fork: meitham/albumiser
compare: 2c1ab26fc3
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 6 additions and 14 deletions.
  1. +6 −14
@@ -25,14 +25,14 @@ def get_options():
#parser = OptionParser(usage=' [options] src dest', version='%s'%__version__)
parser = argparse.ArgumentParser(prog='albumiser',
- description='Organise your photos as you wish.',
+ description='Organise your photos the way they should be',
# either be too verbose or quite, you cannot be both
verbose = parser.add_mutually_exclusive_group()
verbose.add_argument('-v', '--verbose',
- action='store_true', dest='verbose', default=True,
+ action='store_true', dest='verbose',
help='make loads of noise, useful for debugging!')
verbose.add_argument('-q', '--quiet',
@@ -66,22 +66,16 @@ def get_options():
parser.add_argument('-d', '--depth',
type=int, dest='depth',
- help='unlimited [default: %default].')
+ help='default is unlimited.')
parser.add_argument('-g', '--log',
default=None, dest='log',
help='log all actions, default is console.')
- parser.add_argument('source', action="store", nargs='?', default=os.getcwd())
- parser.add_argument('target', action="store", nargs='?', default=os.getcwd())
+ parser.add_argument('source', action="store") #, nargs='?', default=os.getcwd())
+ parser.add_argument('target', action="store") #, nargs='?', default=os.getcwd())
# photos with no EXIF dates will either be copied into a special directory
# or will assume a UNIX epoch 1970-01-01, latter is default
- no_exif = parser.add_mutually_exclusive_group()
- no_exif.add_argument('--process-no-exif',
- default='undated', dest='process_no_exif',
- help='copy/moves images with no EXIF data to [default: %default].')
- no_exif.add_argument('--ignore-no-exif',
+ parser.add_argument('--ignore-no-exif',
action='store_true', dest='ignore_no_exif', default=False,
help='ignore photos with missing EXIF date, otherwise use UNIX epoch.')
return parser
@@ -100,7 +94,6 @@ def get_logger(log=None):
def handle_options():
parser = get_options()
ns = parser.parse_args()
- #ipdb.set_trace()
logger = get_logger(ns.log)
if ns.source == = tempfile.mkdtemp()
@@ -214,7 +207,6 @@ def main():
logger = logging.getLogger('albumiser')
logger.debug('about to walk files')
tree_walker = TreeWalker(ns.source, ns.depth, logger=logger, follow_symlinks=ns.follow_links)
- #ipdb.set_trace()
for dirpath, filename in tree_walker.walk():
undated = False

No commit comments for this range

Something went wrong with that request. Please try again.