I must confess that the erlang binary syntax has confused me.
I want to issue the file:change_mod/2 function but to prepare the integer value that contains the file mode ( 755, 740, etc ) I want to construct it from a list of boolean atoms such as:
[ true, true, true, true, false, true, true, false, true ]
which would be equivalent to 111 101 101 = 755 in octal (base8)
I am unable to find a direct way to do this with bit string representation.