FileDialog.SetCanCreateDirectories
----------------------------------

Sets whether to allow directory creation.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [FileDialog](component_FileDialog.md) | [15.3](newinversion153.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "FileDialog.SetCanCreateDirectories"; Value ) 

**MBS**( **"FileDialog.SetCanCreateDirectories";** /\* Sets whether to allow directory creation. \*/  
**$Value**) /\* Whether to allow user to create directories.  
Pass 1 to allow or 0 to disallow.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Value | Whether to allow user to create directories.   Pass 1 to allow or 0 to disallow. | 1 |

### Result

Returns OK or error.

### Description

Sets whether to allow directory creation.  
By default we allow it in save dialogs and disable it in open dialogs.  
### Examples

Allow directory creation:

 Set Variable \[$r ; Value: MBS ( "FileDialog.SetCanCreateDirectories"; 1 )\]  
### See also

- [FileDialog.GetCanCreateDirectories](FileDialogGetCanCreateDirectories.md)

### Release notes

- **Version 15.3**
    - Added [FileDialog.SetCanCreateDirectories](https://www.mbsplugins.eu/FileDialogSetCanCreateDirectories.shtml) and [FileDialog.GetCanCreateDirectories](https://www.mbsplugins.eu/FileDialogGetCanCreateDirectories.shtml) functions.

### Blog Entries

- [MBS FileMaker Plugin 15.3 News](https://www.mbsplugins.de/archive/2025-07-29/MBS_FileMaker_Plugin_153_News/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 15.3pr1](https://www.mbsplugins.de/archive/2025-06-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 7th May 2025 , last changed 29th June 2025

  
[FileDialog.SetAllowsOtherFileTypes](FileDialogSetAllowsOtherFileTypes.md) - [FileDialog.SetCanSelectHiddenExtension](FileDialogSetCanSelectHiddenExtension.md)

[HTML Version](FileDialogSetCanCreateDirectories.shtml)