because only the last chars of fileperms are interesting to us, the beginning is about whether the file is a directory and such... or am I wrong ?