Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Methods](https://developer.android.com/reference/java/nio/file/attribute/DosFileAttributes#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/java/nio/file/attribute/DosFileAttributes#inhmethods)

# DosFileAttributes

` public interface DosFileAttributes `   
` implements https://developer.android.com/reference/java/nio/file/attribute/BasicFileAttributes `

|---|
| java.nio.file.attribute.DosFileAttributes |

<br />

*** ** * ** ***

File attributes associated with a file in a file system that supports legacy "DOS" attributes.

**Usage Example:**

```
   Path file = ...
   DosFileAttributes attrs = Files.readAttributes(file, DosFileAttributes.class);
```

<br />

## Summary

| ### Public methods ||
|---|---|
| ` abstract boolean` | ` https://developer.android.com/reference/java/nio/file/attribute/DosFileAttributes#isArchive()() ` Returns the value of the archive attribute. |
| ` abstract boolean` | ` https://developer.android.com/reference/java/nio/file/attribute/DosFileAttributes#isHidden()() ` Returns the value of the hidden attribute. |
| ` abstract boolean` | ` https://developer.android.com/reference/java/nio/file/attribute/DosFileAttributes#isReadOnly()() ` Returns the value of the read-only attribute. |
| ` abstract boolean` | ` https://developer.android.com/reference/java/nio/file/attribute/DosFileAttributes#isSystem()() ` Returns the value of the system attribute. |

### Inherited methods

From interface ` https://developer.android.com/reference/java/nio/file/attribute/BasicFileAttributes ` ` abstract https://developer.android.com/reference/java/nio/file/attribute/FileTime` ` https://developer.android.com/reference/java/nio/file/attribute/BasicFileAttributes#creationTime()() `

Returns the creation time.
` abstract https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/nio/file/attribute/BasicFileAttributes#fileKey()() `

Returns an object that uniquely identifies the given file, or `null` if a file key is not available.
` abstract boolean` ` https://developer.android.com/reference/java/nio/file/attribute/BasicFileAttributes#isDirectory()() `

Tells whether the file is a directory.
` abstract boolean` ` https://developer.android.com/reference/java/nio/file/attribute/BasicFileAttributes#isOther()() `

Tells whether the file is something other than a regular file, directory, or symbolic link.
` abstract boolean` ` https://developer.android.com/reference/java/nio/file/attribute/BasicFileAttributes#isRegularFile()() `

Tells whether the file is a regular file with opaque content.
` abstract boolean` ` https://developer.android.com/reference/java/nio/file/attribute/BasicFileAttributes#isSymbolicLink()() `

Tells whether the file is a symbolic link.
` abstract https://developer.android.com/reference/java/nio/file/attribute/FileTime` ` https://developer.android.com/reference/java/nio/file/attribute/BasicFileAttributes#lastAccessTime()() `

Returns the time of last access.
` abstract https://developer.android.com/reference/java/nio/file/attribute/FileTime` ` https://developer.android.com/reference/java/nio/file/attribute/BasicFileAttributes#lastModifiedTime()() `

Returns the time of last modification.
` abstract long` ` https://developer.android.com/reference/java/nio/file/attribute/BasicFileAttributes#size()() `

Returns the size of the file (in bytes).

## Public methods

### isArchive

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract boolean isArchive ()
```

Returns the value of the archive attribute.

This attribute is typically used by backup programs.

<br />

| Returns ||
|---|---|
| `boolean` | the value of the archive attribute <br /> |

### isHidden

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract boolean isHidden ()
```

Returns the value of the hidden attribute.

This attribute is often used to indicate if the file is visible to users.

<br />

| Returns ||
|---|---|
| `boolean` | the value of the hidden attribute <br /> |

### isReadOnly

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract boolean isReadOnly ()
```

Returns the value of the read-only attribute.

This attribute is often used as a simple access control mechanism to prevent files from being deleted or updated. Whether the file system or platform does any enforcement to prevent *read-only* files from being updated is implementation specific.

<br />

| Returns ||
|---|---|
| `boolean` | the value of the read-only attribute <br /> |

### isSystem

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract boolean isSystem ()
```

Returns the value of the system attribute.

This attribute is often used to indicate that the file is a component of the operating system.

<br />

| Returns ||
|---|---|
| `boolean` | the value of the system attribute <br /> |