Files.SetFileExtensionHidden
----------------------------

Sets the hidden state for the file extension of a file or folder.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Files](component_Files.md) | [12.0](newinversion120.md) | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ❌ No |

MBS( "Files.SetFileExtensionHidden"; Path; Value ) 

**MBS**( **"Files.SetFileExtensionHidden";** /\* Sets the hidden state for the file extension of a file or folder. \*/  
**$Path**; /\* The native path to the file or folder to be checked.e.g. "/Users/John/Desktop/test.txt" \*/   
**$Value**) /\* The new state.  
Pass 1 to hide file or 0 to unhide file.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Path | The native path to the file or folder to be checked. | "/Users/John/Desktop/test.txt" |
| Value | The new state.   Pass 1 to hide file or 0 to unhide file. | 1 |

### Result

Returns OK or error.

### Description

Sets the hidden state for the file extension of a file or folder.  
### See also

- [Files.IsFileExtensionHidden](FilesIsFileExtensionHidden.md)

### Release notes

- **Version 12.0**
    - Added [Files.IsExcludedFromBackup](https://www.mbsplugins.eu/FilesIsExcludedFromBackup.shtml), [Files.IsFileExtensionHidden](https://www.mbsplugins.eu/FilesIsFileExtensionHidden.shtml), [Files.SetExcludedFromBackup](https://www.mbsplugins.eu/FilesSetExcludedFromBackup.shtml) and [Files.SetFileExtensionHidden](https://www.mbsplugins.eu/FilesSetFileExtensionHidden.shtml) functions.

### Blog Entries

- [New in MBS FileMaker Plugin 12.0](https://www.mbsplugins.de/archive/2022-01-31/New_in_MBS_FileMaker_Plugin_12/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 12.0pr8](https://www.mbsplugins.de/archive/2022-01-14/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 13th January 2022 , last changed 13th January 2022

  
[Files.SetExcludedFromBackup](FilesSetExcludedFromBackup.md) - [Files.SetFinderLabel](FilesSetFinderLabel.md)

[HTML Version](FilesSetFileExtensionHidden.shtml)