org.springframework.util

## 类 FileSystemUtils

- java.lang.Object
- - org.springframework.util.FileSystemUtils

-     public abstract class FileSystemUtils
      extends Object

  Utility methods for working with the file system.
  从以下版本开始:
    2.5.3
  作者:
    Rob Harrop, Juergen Hoeller
  另请参阅:
    `File`, `Path`, `Files`

- - ### 构造器概要

    构造器
    构造器和说明
    `FileSystemUtils()`

  - ### 方法概要

    所有方法 静态方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `static void` | `copyRecursively(File src, File dest)` Recursively copy the contents of the `src` file/directory to the `dest` file/directory.
    `static void` | `copyRecursively(Path src, Path dest)` Recursively copy the contents of the `src` file/directory to the `dest` file/directory.
    `static boolean` | `deleteRecursively(File root)` Delete the supplied `File` - for directories, recursively delete any nested directories or files as well.
    `static boolean` | `deleteRecursively(Path root)` Delete the supplied `File` - for directories, recursively delete any nested directories or files as well.

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### FileSystemUtils

          public FileSystemUtils()

  - ### 方法详细资料

    - #### deleteRecursively

          public static boolean deleteRecursively(@Nullable
                                                  File root)

      Delete the supplied `File` - for directories, recursively delete any nested directories or files as well.

      Note: Like `File.delete()`, this method does not throw any exception but rather silently returns `false` in case of I/O errors. Consider using `deleteRecursively(Path)` for NIO-style handling of I/O errors, clearly differentiating between non-existence and failure to delete an existing file.

      参数:
        `root` - the root `File` to delete
      返回:
        `true` if the `File` was successfully deleted, otherwise `false`

    - #### deleteRecursively

          public static boolean deleteRecursively(@Nullable
                                                  Path root)
                                           throws IOException

      Delete the supplied `File` - for directories, recursively delete any nested directories or files as well.
      参数:
        `root` - the root `File` to delete
      返回:
        `true` if the `File` existed and was deleted, or `false` it it did not exist
      抛出:
        `IOException` - in the case of I/O errors
      从以下版本开始:
        5.0

    - #### copyRecursively

          public static void copyRecursively(File src,
                                             File dest)
                                      throws IOException

      Recursively copy the contents of the `src` file/directory to the `dest` file/directory.
      参数:
        `src` - the source directory
        `dest` - the destination directory
      抛出:
        `IOException` - in the case of I/O errors

    - #### copyRecursively

          public static void copyRecursively(Path src,
                                             Path dest)
                                      throws IOException

      Recursively copy the contents of the `src` file/directory to the `dest` file/directory.
      参数:
        `src` - the source directory
        `dest` - the destination directory
      抛出:
        `IOException` - in the case of I/O errors
      从以下版本开始:
        5.0