jaulib v1.3.0
Jau Support Library (C++, Java, ..)
Public Member Functions | Public Attributes | List of all members
org.jau.fs.CopyOptions.Bit Enum Reference
Collaboration diagram for org.jau.fs.CopyOptions.Bit:

Public Member Functions

 Bit (final short v)
 

Public Attributes

 none =( (short) 0 )
 No option set. More...
 
 recursive =( (short)( 1 << 0 ) )
 Traverse through directories, i.e. More...
 
 follow_symlinks =( (short)( 1 << 1 ) )
 Copy referenced symbolic linked files or directories instead of just the symbolic link with property fmode_t::link set. More...
 
 into_existing_dir =( (short)( 1 << 2 ) )
 Copy source dir content into an already existing destination directory as if destination directory did not exist. More...
 
 ignore_symlink_errors =( (short)( 1 << 8 ) )
 Ignore errors from erroneous symlinks, e.g. More...
 
 overwrite =( (short)( 1 << 9 ) )
 Overwrite existing destination files. More...
 
 preserve_all =( (short)( 1 << 10 ) )
 Preserve uid and gid if allowed and access- and modification-timestamps, i.e. More...
 
 sync =( (short)( 1 << 11 ) )
 Ensure data and meta-data file synchronization is performed via ::fsync() after asynchronous copy operations of a file's content. More...
 
 verbose =( (short)( 1 << 15 ) )
 Enable verbosity mode, show error messages on stderr. More...
 
final short value
 

Detailed Description

Definition at line 36 of file CopyOptions.java.

Constructor & Destructor Documentation

◆ Bit()

org.jau.fs.CopyOptions.Bit.Bit ( final short  v)

Definition at line 75 of file CopyOptions.java.

Member Data Documentation

◆ follow_symlinks

org.jau.fs.CopyOptions.Bit.follow_symlinks =( (short)( 1 << 1 ) )

Copy referenced symbolic linked files or directories instead of just the symbolic link with property fmode_t::link set.

Definition at line 44 of file CopyOptions.java.

◆ ignore_symlink_errors

org.jau.fs.CopyOptions.Bit.ignore_symlink_errors =( (short)( 1 << 8 ) )

Ignore errors from erroneous symlinks, e.g.

non-existing link-targets, recursive loop-errors.or unsupported symmlinks on target filesystem.

This flag is required to

  • copy erroneous non-existing symlinks if using follow_symlinks
  • copy erroneous recursive loop-error symlinks if using follow_symlinks
  • ignore symlinks if not supported by target filesystem if not using follow_symlinks

Definition at line 61 of file CopyOptions.java.

◆ into_existing_dir

org.jau.fs.CopyOptions.Bit.into_existing_dir =( (short)( 1 << 2 ) )

Copy source dir content into an already existing destination directory as if destination directory did not exist.

Otherwise, if destination directory already exist, the source directory will be copied below the destination directory.

Definition at line 51 of file CopyOptions.java.

◆ none

org.jau.fs.CopyOptions.Bit.none =( (short) 0 )

No option set.

Definition at line 38 of file CopyOptions.java.

◆ overwrite

org.jau.fs.CopyOptions.Bit.overwrite =( (short)( 1 << 9 ) )

Overwrite existing destination files.

Definition at line 64 of file CopyOptions.java.

◆ preserve_all

org.jau.fs.CopyOptions.Bit.preserve_all =( (short)( 1 << 10 ) )

Preserve uid and gid if allowed and access- and modification-timestamps, i.e.

producing a most exact meta-data copy.

Definition at line 67 of file CopyOptions.java.

◆ recursive

org.jau.fs.CopyOptions.Bit.recursive =( (short)( 1 << 0 ) )

Traverse through directories, i.e.

perform visit, copy, remove etc actions recursively throughout the directory structure.

Definition at line 41 of file CopyOptions.java.

◆ sync

org.jau.fs.CopyOptions.Bit.sync =( (short)( 1 << 11 ) )

Ensure data and meta-data file synchronization is performed via ::fsync() after asynchronous copy operations of a file's content.

Definition at line 70 of file CopyOptions.java.

◆ value

final short org.jau.fs.CopyOptions.Bit.value

Definition at line 76 of file CopyOptions.java.

◆ verbose

org.jau.fs.CopyOptions.Bit.verbose =( (short)( 1 << 15 ) )

Enable verbosity mode, show error messages on stderr.

Definition at line 73 of file CopyOptions.java.


The documentation for this enum was generated from the following file: