rem: panel->flags.canChooseDirectories = flag;
add: panel->flags.canChooseDirectories = ((flag==0) ? 0 : 1);
context: WMSetFilePanelCanChooseDirectories(WMFilePanel *panel, Bool flag){    panel->flags.canChooseDirectories = flag;}