 while (-1 != scanf("%c%s %*s %*s %*s %s %*s %*s %*s %*s", &directory, permissions, mem)) {
        if (directory == '-') {
            perm_list[i] = permissions;
            mem_list[i] = strtol(mem, NULL, 10);
            i ++;
            size ++;
        }   
    }