Language

Files.IsHidden(IPath) Method

Definition

Tells whether or not a file is considered hidden.

[Android.Runtime.Register("isHidden", "(Ljava/nio/file/Path;)Z", "", ApiSince=26)]
public static bool IsHidden(Java.Nio.FileNio.IPath? path);
[<Android.Runtime.Register("isHidden", "(Ljava/nio/file/Path;)Z", "", ApiSince=26)>]
static member IsHidden : Java.Nio.FileNio.IPath -> bool

Parameters

path
IPath

the path to the file to test

Returns

true if the file is considered hidden

Attributes

Exceptions

if an I/O error occurs

In the case of the default provider, and a security manager is installed, the checkRead method is invoked to check read access to the file.

Remarks

Tells whether or not a file is considered hidden. The exact definition of hidden is platform or provider dependent. On UNIX for example a file is considered to be hidden if its name begins with a period character ('.'). On Windows a file is considered hidden if it isn't a directory and the DOS DosFileAttributes#isHidden hidden attribute is set.

Depending on the implementation this method may require to access the file system to determine if the file is considered hidden.

Java documentation for java.nio.file.Files.isHidden(java.nio.file.Path).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to