Developer(s) | Apple Inc. |
---|---|
Final release | 3.6.2 (179) |
Operating system | Mac OS 8, 9, X |
Type | File manager Search engine |
Website | www.apple.com/lae/sherlock/ |
<search>
, <input>
, and <interpret>
tags. These elements allowed Sherlock to (respectively) identify a search's engine's web page and the parts that are relevant to searching, as well as returning the results of the search. There was also a facility for defining how a Sherlock plug-in could update itself.<search>
element) and the icon (provided in a separate file in Mozilla and part of the resource fork in Sherlock).filecmp
module defines functions to compare files and directories,with various optional time/correctness trade-offs. For comparing files,see also the difflib
module.filecmp
module defines the following functions:filecmp.
cmp
(f1, f2[, shallow])¶True
if they seem equal,False
otherwise.os.stat()
signatures are taken to be equal.os.stat()
signature changes.filecmp.
cmpfiles
(dir1, dir2, common[, shallow])¶filecmp.cmp()
. Ismartphoto 1 7 5.cmpfiles('a','b',['c','d/e'])
will compare a/c
withb/c
and a/d/e
with b/d/e
. 'c'
and 'd/e'
will each be inone of the three returned lists.dircmp
class¶dircmp
instances are built using this constructor:filecmp.
dircmp
(a, b[, ignore[, hide]])¶['RCS','CVS','tags']
. hide is a list of names to hide, and defaults to [os.curdir,os.pardir]
.dircmp
class compares files by doing shallow comparisonsas described for filecmp.cmp()
.dircmp
class provides the following methods:report
()¶sys.stdout
) a comparison between a and b.report_partial_closure
()¶report_full_closure
()¶dircmp
class offers a number of interesting attributes that may beused to get various bits of information about the directory trees beingcompared.__getattr__()
hooks, all attributes are computed lazily,so there is no speed penalty if only those attributes which are lightweightto compute are used.left
¶right
¶left_list
¶right_list
¶common
¶left_only
¶right_only
¶common_dirs
¶common_files
¶common_funny
¶os.stat()
reports an error.same_files
¶diff_files
¶funny_files
¶subdirs
¶common_dirs
to dircmp
objects.subdirs
attribute to searchrecursively through two directories to show common different files: