public void setMoodleFileFileField(String field, String value) {
        setMoodleFileParentField(field, value);
        if (field.equals("isdir") && !value.isEmpty()) setIsDir(Integer.parseInt(value)!=0);
        if (field.equals("url") && !value.isEmpty()) setURL(value);
    }