Print file permissions in octal form.

Closes #16943.
Print file permissions with 4 digits.
auto merge of #16976 : treeman/rust/issue-16943, r=kballard

Closes #16943.