Convert between symbolic permissions (e.g. drwxr-xr-x) and numeric chmod (e.g. 755).
drwxr-xr-x
755
Accepts: d or - then 9 chars (rwxrwxrwx with -).
d
-
rwxrwxrwx
r=4
w=2
x=1