| Package | Description | 
|---|---|
| java.nio.file | Defines interfaces and classes for the Java virtual machine to access files,
 file attributes, and file systems. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | AccessDeniedExceptionChecked exception thrown when a file system operation is denied, typically
 due to a file permission or other access check. | 
| class  | AtomicMoveNotSupportedExceptionChecked exception thrown when a file cannot be moved as an atomic file system
 operation. | 
| class  | DirectoryNotEmptyExceptionChecked exception thrown when a file system operation fails because a
 directory is not empty. | 
| class  | FileAlreadyExistsExceptionChecked exception thrown when an attempt is made to create a file or
 directory and a file of that name already exists. | 
| class  | FileSystemLoopExceptionChecked exception thrown when a file system loop, or cycle, is encountered. | 
| class  | NoSuchFileExceptionChecked exception thrown when an attempt is made to access a file that does
 not exist. | 
| class  | NotDirectoryExceptionChecked exception thrown when a file system operation, intended for a
 directory, fails because the file is not a directory. | 
| class  | NotLinkExceptionChecked exception thrown when a file system operation fails because a file
 is not a symbolic link. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.