Fill fileList according to the OS