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