jaulib v1.3.0
Jau Support Library (C++, Java, ..)
|
Filesystem traverse event used to call path_visitor for path elements from visit(). More...
Public Member Functions | |
TraverseEvent (final short v) | |
Public Attributes | |
none =( (short) 0 ) | |
No value, neither file, symlink nor dir_entry or dir_exit. More... | |
symlink =( (short) (1 << 0) ) | |
Visiting a symbolic-link, either to a file or a non-existing entity. More... | |
file =( (short) (1 << 1) ) | |
Visiting a file, may be in conjunction with symlink, i.e. More... | |
file_symlink =( (short) ( 1 << 0 | 1 << 1 ) ) | |
Visiting a symlink to a file, i.e. More... | |
dir_symlink =( (short) (1 << 2) ) | |
Visiting a symbolic-link to a directory which is not followed, i.e. More... | |
dir_check_entry =( (short) (1 << 7) ) | |
Visiting a directory on entry, see traverse_options::dir_check_entry. More... | |
dir_entry =( (short) (1 << 8) ) | |
Visiting a directory on entry, see traverse_options::dir_entry. More... | |
dir_exit =( (short) (1 << 9) ) | |
Visiting a directory on exit, see traverse_options::dir_exit. More... | |
dir_non_recursive =( (short) ( 1 << 8 | 1 << 9 ) ) | |
Visiting a directory non-recursive, i.e. More... | |
final short | value |
Filesystem traverse event used to call path_visitor for path elements from visit().
This enum class
type fulfills C++ named requirements: BitmaskType
.
Definition at line 34 of file TraverseEvent.java.
org.jau.fs.TraverseEvent.TraverseEvent | ( | final short | v | ) |
Definition at line 93 of file TraverseEvent.java.
org.jau.fs.TraverseEvent.dir_check_entry =( (short) (1 << 7) ) |
Visiting a directory on entry, see traverse_options::dir_check_entry.
This allows the path_visitor to deny traversal into the directory by returning false, otherwise continuing traversal.
Definition at line 62 of file TraverseEvent.java.
org.jau.fs.TraverseEvent.dir_entry =( (short) (1 << 8) ) |
Visiting a directory on entry, see traverse_options::dir_entry.
If a directory is visited non-recursive, i.e. traverse_options::recursive not set, dir_entry and dir_exit are set, see dir_non_recursive.
If a directory is a symbolic link which is not followed, i.e. traverse_options::follow_symlinks not set, dir_symlink is used instead.
Definition at line 73 of file TraverseEvent.java.
org.jau.fs.TraverseEvent.dir_exit =( (short) (1 << 9) ) |
Visiting a directory on exit, see traverse_options::dir_exit.
If a directory is visited non-recursive, i.e. traverse_options::recursive not set, dir_entry and dir_exit are set, see dir_non_recursive.
If a directory is a symbolic link which is not followed, i.e. traverse_options::follow_symlinks not set, dir_symlink is used instead.
Definition at line 84 of file TraverseEvent.java.
org.jau.fs.TraverseEvent.dir_non_recursive =( (short) ( 1 << 8 | 1 << 9 ) ) |
Visiting a directory non-recursive, i.e.
traverse_options::recursive not set.
Value is a bit-mask of dir_entry | dir_exit
Definition at line 91 of file TraverseEvent.java.
org.jau.fs.TraverseEvent.dir_symlink =( (short) (1 << 2) ) |
Visiting a symbolic-link to a directory which is not followed, i.e.
traverse_options::follow_symlinks not set.
Definition at line 54 of file TraverseEvent.java.
org.jau.fs.TraverseEvent.file =( (short) (1 << 1) ) |
Visiting a file, may be in conjunction with symlink, i.e.
file_symlink
Definition at line 46 of file TraverseEvent.java.
org.jau.fs.TraverseEvent.file_symlink =( (short) ( 1 << 0 | 1 << 1 ) ) |
org.jau.fs.TraverseEvent.none =( (short) 0 ) |
No value, neither file, symlink nor dir_entry or dir_exit.
Implying an error state in file_stat, e.g. !file_stats::has_access().
Definition at line 36 of file TraverseEvent.java.
org.jau.fs.TraverseEvent.symlink =( (short) (1 << 0) ) |
Visiting a symbolic-link, either to a file or a non-existing entity.
Not followed symbolic-links to a directory is expressed via dir_symlink.
In case of a symbolic-link to an existing file, file is also set, i.e. file_symlink.
Definition at line 43 of file TraverseEvent.java.
final short org.jau.fs.TraverseEvent.value |
Definition at line 94 of file TraverseEvent.java.