"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tools/cdfile.py" between
Tardis-1.0.4.tar.gz and Tardis-1.0.5.tar.gz

About: Tardis is a system for making encrypted, incremental backups of filesystems.

cdfile.py  (Tardis-1.0.4):cdfile.py  (Tardis-1.0.5)
#! /usr/bin/python #! /usr/bin/python
from Tardis import CacheDir, Util from Tardis import CacheDir, Util
import argparse import argparse
import sys import sys
import logging
logging.basicConfig()
parser = argparse.ArgumentParser(description="Generate file paths in a cache dir directory", add_help=True) parser = argparse.ArgumentParser(description="Generate file paths in a cache dir directory", add_help=True)
parser.add_argument('--base', '-b', dest='base', default='.', help='Base CacheDi r directory') parser.add_argument('--base', '-b', dest='base', default='.', help='Base CacheDi r directory')
parser.add_argument('files', nargs='*', help='List of files to print') parser.add_argument('files', nargs='*', help='List of files to print')
Util.addGenCompletions(parser) Util.addGenCompletions(parser)
args = parser.parse_args() args = parser.parse_args()
c = CacheDir.CacheDir(args.base) c = CacheDir.CacheDir(args.base, create=False)
for i in args.files: for i in args.files:
print c.path(i) print c.path(i)
 End of changes. 2 change blocks. 
1 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)