Show More
@@ -61,7 +61,7 b' def visit(opts, filenames, outfile):' | |||
|
61 | 61 | facts.append('type unknown') |
|
62 | 62 | if not isstdin: |
|
63 | 63 | stat = os.lstat(f) |
|
64 | if opts.size: | |
|
64 | if opts.size and not isdir: | |
|
65 | 65 | facts.append('size=%s' % stat.st_size) |
|
66 | 66 | if opts.mode: |
|
67 | 67 | facts.append('mode=%o' % (stat.st_mode & 0777)) |
@@ -65,7 +65,7 b' Tests of the file helper tool' | |||
|
65 | 65 | #if unix-permissions symlink |
|
66 | 66 | $ ln -s yadda l |
|
67 | 67 | $ f . --recurse -MStmsB4 |
|
68 |
.: directory with 4 files, |
|
|
68 | .: directory with 4 files, mode=755 | |
|
69 | 69 | ./bar: file, size=21, mode=755, md5=3b03, sha1=612c |
|
70 | 70 | ./baz: file, size=21, mode=755, md5=3b03, sha1=612c |
|
71 | 71 | ./foo: file, size=4, mode=644, md5=d3b0, sha1=f1d2 |
General Comments 0
You need to be logged in to leave comments.
Login now