Show More
@@ -63,7 +63,7 def visit(opts, filenames, outfile): | |||||
63 | stat = os.lstat(f) |
|
63 | stat = os.lstat(f) | |
64 | if opts.size and not isdir: |
|
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 and not islink: | |
67 | facts.append('mode=%o' % (stat.st_mode & 0777)) |
|
67 | facts.append('mode=%o' % (stat.st_mode & 0777)) | |
68 | if opts.links: |
|
68 | if opts.links: | |
69 | facts.append('links=%s' % stat.st_nlink) |
|
69 | facts.append('links=%s' % stat.st_nlink) |
@@ -69,7 +69,7 Tests of the file helper tool | |||||
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 | |
72 |
./l: link, size=5, |
|
72 | ./l: link, size=5, md5=2faa, sha1=af93 | |
73 | #endif |
|
73 | #endif | |
74 |
|
74 | |||
75 | $ f --quiet bar -DL 3 |
|
75 | $ f --quiet bar -DL 3 |
General Comments 0
You need to be logged in to leave comments.
Login now