Files.IsHidden
--------------

Queries hidden state of a file or folder.

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

MBS( "Files.IsHidden"; Path ) 

**MBS**( **"Files.IsHidden";** /\* Queries hidden 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 hidden 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 is hidden:

 Set Variable \[$r ; Value: MBS ( "Files.IsHidden"; "C:\\Users\\Christian\\Desktop\\test.txt" ) \]  
### See also

- [Files.SetHidden](FilesSetHidden.md)
- [Path.FileMakerPathToNativePath](PathFileMakerPathToNativePath.md)

### Release notes

- **Version 7.1**
    - Added [Files.IsHidden](http://www.mbsplugins.eu/FilesIsHidden.shtml) and [Files.SetHidden](http://www.mbsplugins.eu/FilesSetHidden.shtml).

### Blog Entries

- [MBS Plugin Advent calendar: 12 - Files](https://www.mbsplugins.de/archive/2023-12-12/MBS_Plugin_Advent_calendar_12_/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 7.1pr4](https://www.mbsplugins.de/archive/2017-03-06/MBS_FileMaker_Plugin_version_7/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 1st March 2017 , last changed 12nd February 2025

  
[Files.IsFileExtensionHidden](FilesIsFileExtensionHidden.md) - [Files.IsPackage](FilesIsPackage.md)

[HTML Version](FilesIsHidden.shtml)