Files.IsFileExtensionHidden
---------------------------

Queries file extension visibility state 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.IsFileExtensionHidden"; Path ) 

**MBS**( **"Files.IsFileExtensionHidden";** /\* Queries file extension visibility state of a file or folder. \*/  
**$Path**) /\* The native path to the file or folder to be checked.e.g. "/Users/John/Desktop/test.txt" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Path | The native path to the file or folder to be checked. | "/Users/John/Desktop/test.txt" |

### Result

Returns 1, 0 or error.

### Description

Queries file extension visibility state of a file or folder.  
  
This function requires a native path. Use [Path.FileMakerPathToNativePath](PathFileMakerPathToNativePath.md) to convert a FileMaker path to a native path if required. If you like to have the user choose the path, you can use [FileDialog](component_FileDialog.md) functions.  
For Server be aware that server has limited permissions and may not be able to access all files on a computer.  
### Examples

Check whether file extension is hidden:

 Set Variable \[$r ; Value: MBS ( "Files.IsFileExtensionHidden"; "/Users/cs/Dokumente/test.rtf" ) \]  
### See also

- [Files.SetFileExtensionHidden](FilesSetFileExtensionHidden.md)
- [Path.FileMakerPathToNativePath](PathFileMakerPathToNativePath.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 12nd February 2025

  
[Files.IsExcludedFromBackup](FilesIsExcludedFromBackup.md) - [Files.IsHidden](FilesIsHidden.md)

[HTML Version](FilesIsFileExtensionHidden.shtml)