filemode to filemask