# HG changeset patch # User Bill Mill # Date 1376524953 14400 # Node ID 81501b0cf30f800f83c8f82508e69bb114db53bc # Parent de2735512614514eade4c771f56ab7b97e10a0fd add an option to print the abspath instead of relative path diff -r de2735512614 -r 81501b0cf30f ffind --- a/ffind Sat Nov 24 13:41:51 2012 -0500 +++ b/ffind Wed Aug 14 20:02:33 2013 -0400 @@ -467,6 +467,9 @@ for item in contents: path = os.path.join(dir, item) + if options.print_fullname: + path = os.path.abspath(path) + if not should_ignore(item, path, ignorers): if match(query, path, item): out(path, '\0' if options.zero else '\n') @@ -517,6 +520,9 @@ p.add_option('-E', '--non-entire', dest='entire', action='store_false', help='match PATTERN against only the filenames (default)') + p.add_option('-p', '--fullname', dest='print_fullname', + action='store_true', default=False, + help="print the file's full name") # Case sensitivity g = OptionGroup(p, "Configuring Case Sensitivity")