Enum Class FileCopyFlags

java.lang.Object
java.lang.Enum<FileCopyFlags>
org.gnome.gio.FileCopyFlags
All Implemented Interfaces:
Serializable, Comparable<FileCopyFlags>, Constable, Enumeration

@Generated("org.javagi.JavaGI") public enum FileCopyFlags extends Enum<FileCopyFlags> implements Enumeration
Flags used when copying or moving files.
  • Enum Constant Details

    • NONE

      public static final FileCopyFlags NONE
      No flags set.
    • OVERWRITE

      public static final FileCopyFlags OVERWRITE
      Overwrite any existing files
    • BACKUP

      public static final FileCopyFlags BACKUP
      Make a backup of any existing files.
    • ALL_METADATA

      public static final FileCopyFlags ALL_METADATA
      Copy all file metadata instead of just default set used for copy (see GFileInfo).
    • NO_FALLBACK_FOR_MOVE

      public static final FileCopyFlags NO_FALLBACK_FOR_MOVE
      Don't use copy and delete fallback if native move not supported.
    • TARGET_DEFAULT_PERMS

      public static final FileCopyFlags TARGET_DEFAULT_PERMS
      Leaves target file with default perms, instead of setting the source file perms.
    • TARGET_DEFAULT_MODIFIED_TIME

      public static final FileCopyFlags TARGET_DEFAULT_MODIFIED_TIME
      Use default modification timestamps instead of copying them from the source file. Since 2.80
  • Method Details

    • values

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

      public static FileCopyFlags 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.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()
      Get the numeric value of this enum
      Specified by:
      getValue in interface Enumeration
      Returns:
      the enum value
    • of

      public static Set<FileCopyFlags> of(int flags)
      Create a new EnumSet<FileCopyFlags> for the provided bitfield
      Parameters:
      flags - the FileCopyFlags bitfield
      Returns:
      the EnumSet for the provided bitfield
    • of

      public static Set<FileCopyFlags> of(MemorySegment address)
      Create a new EnumSet<FileCopyFlags> for the bitfield in the provided memory address.
      Parameters:
      address - the memory address holding a bitfield value
      Returns:
      the EnumSet for the bitfield in the provided memory address
    • getType

      public static @Nullable Type getType()
      Get the GType of the FileCopyFlags class.
      Returns:
      the GType