程序包 cool.scx.util

Enum Class FileUtils.DeleteOption

java.lang.Object
java.lang.Enum<FileUtils.DeleteOption>
cool.scx.util.FileUtils.DeleteOption
所有已实现的接口:
Serializable, Comparable<FileUtils.DeleteOption>, Constable
封闭类:
FileUtils

public static enum FileUtils.DeleteOption extends Enum<FileUtils.DeleteOption>
a
  • 枚举常量详细资料

    • EXCLUDE_ROOT

      public static final FileUtils.DeleteOption EXCLUDE_ROOT
      实现清空文件夹的效果 排除根目录 (删除文件为 "文件" 时无效, "目录" 时有效) 比如 未使用此选项调用 delete("/user/test") 文件夹 则 test 文件夹会被删除 若使用此选项则 会清空 test 下所有文件 test 目录则会保留
  • 方法详细资料

    • values

      public static FileUtils.DeleteOption[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      返回:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static FileUtils.DeleteOption valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - 如果参数为空值