$ find /some/folder -type d -print | ./pkgproto
d none /some/folder 0755 João Pedro Vieira Godoy joaop
d none /some/folder/child 0755 João Pedro Vieira Godoy joaop
Changed to
$ find /some/folder -type d -print | ./pkgproto
d none /some/folder 0755 joaop joaop
d none /some/folder/child 0755 joaop joaop
fix: Changed Owner Name to Username
Based on the pkgproto(1) man page.
Changed to
fix: Octal permissions
Simply read the
(fs.FileMode).Perm()
and convert to the octal format.