IDAPython 8.4
|
Proxy of C++ dirtree_t class.
Public Member Functions | |
__init__ (self, *args) | |
init(self, ds) -> dirtree_t | |
"bool" | is_orderable (self, *args) |
is_orderable(self) -> bool Is dirtree orderable? | |
"dterr_t" | chdir (self, *args) |
chdir(self, path) -> dterr_t Change current directory | |
"qstring" | getcwd (self, *args) |
getcwd(self) -> qstring Get current directory | |
"qstring" | get_abspath (self, *args) |
get_abspath(self, cursor, name_flags=DTN_FULL_NAME) -> qstring Construct an absolute path from the specified relative path. | |
"direntry_t" | resolve_cursor (self, *args) |
resolve_cursor(self, cursor) -> direntry_t Resolve cursor | |
"direntry_t" | resolve_path (self, *args) |
resolve_path(self, path) -> direntry_t Resolve path | |
"bool" | isdir (self, *args) |
isdir(self, de) -> bool | |
"bool" | isfile (self, *args) |
isfile(self, de) -> bool | |
"qstring" | get_entry_name (self, *args) |
get_entry_name(self, de, name_flags=DTN_FULL_NAME) -> qstring Get entry name | |
"bool" | is_dir_ordered (self, *args) |
is_dir_ordered(self, diridx) -> bool Is dir ordered? | |
"bool" | set_natural_order (self, *args) |
set_natural_order(self, diridx, enable) -> bool Enable/disable natural inode order in a directory. | |
"ssize_t" | get_dir_size (self, *args) |
get_dir_size(self, diridx) -> ssize_t Get dir size | |
"qstring" | get_entry_attrs (self, *args) |
get_entry_attrs(self, de) -> qstring Get entry attributes | |
"bool" | findfirst (self, *args) |
findfirst(self, ff, pattern) -> bool Start iterating over files in a directory | |
"bool" | findnext (self, *args) |
findnext(self, ff) -> bool Continue iterating over files in a directory | |
"dterr_t" | mkdir (self, *args) |
mkdir(self, path) -> dterr_t Create a directory. | |
"dterr_t" | rmdir (self, *args) |
rmdir(self, path) -> dterr_t Remove a directory. | |
"dterr_t" | link (self, *args) |
link(self, path) -> dterr_t Add an inode into the current directory | |
"dterr_t" | unlink (self, *args) |
unlink(self, path) -> dterr_t Remove an inode from the current directory | |
"dterr_t" | rename (self, *args) |
rename(self, _from, to) -> dterr_t Rename a directory entry. | |
"ssize_t" | get_rank (self, *args) |
get_rank(self, diridx, de) -> ssize_t Get ordering rank of an item. | |
"dterr_t" | change_rank (self, *args) |
change_rank(self, path, rank_delta) -> dterr_t Change ordering rank of an item. | |
"dirtree_cursor_t" | get_parent_cursor (self, *args) |
get_parent_cursor(self, cursor) -> dirtree_cursor_t Get parent cursor. | |
"bool" | load (self, *args) |
load(self) -> bool Load the tree structure from the netnode. | |
"bool" | save (self, *args) |
save(self) -> bool Save the tree structure to the netnode. | |
"char const *" | get_id (self, *args) |
get_id(self) -> char const * netnode name | |
"void" | set_id (self, *args) |
set_id(self, nm) | |
"void" | notify_dirtree (self, *args) |
notify_dirtree(self, added, inode) Notify dirtree about a change of an inode. | |
"ssize_t" | traverse (self, *args) |
traverse(self, v) -> ssize_t Traverse dirtree, and be notified at each entry If the the visitor returns anything other than 0, iteration will stop, and that value returned. | |
"dirtree_cursor_t" | find_entry (self, *args) |
find_entry(self, de) -> dirtree_cursor_t Find the cursor corresponding to an entry of a directory | |
Static Public Member Functions | |
"char const *" | errstr (*args) |
errstr(err) -> char const * Get textual representation of the error code. | |
Static Public Attributes | |
"char const *" | get_nodename = get_id |
"void" | set_nodename = set_id |
Properties | |
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") | |
__init__ | ( | self, | |
* | args ) |
ds | dirspec_t * |
"dterr_t" change_rank | ( | self, | |
* | args ) |
path | (C++: const char *) path to the item |
rank_delta | (C++: ssize_t) the amount of the change. positive numbers mean to move down in the list; negative numbers mean to move up. |
"dterr_t" chdir | ( | self, | |
* | args ) |
path | (C++: const char *) new current directory |
|
static |
err | (C++: dterr_t) enum dterr_t |
"dirtree_cursor_t" find_entry | ( | self, | |
* | args ) |
de | (C++: const direntry_t &) directory entry |
"bool" findfirst | ( | self, | |
* | args ) |
ff | (C++: dirtree_iterator_t *) directory iterator. it will be initialized by the function |
pattern | (C++: const char *) pattern to search for |
"bool" findnext | ( | self, | |
* | args ) |
ff | (C++: dirtree_iterator_t *) directory iterator |
"qstring" get_abspath | ( | self, | |
* | args ) |
This function verifies the directory part of the specified path. The last component of the specified path is not verified.
cursor | dirtree_cursor_t const & |
name_flags | uint32 |
relpath | char const * |
"ssize_t" get_dir_size | ( | self, | |
* | args ) |
diridx | (C++: diridx_t) directory index |
"qstring" get_entry_attrs | ( | self, | |
* | args ) |
de | (C++: const direntry_t &) directory entry |
"qstring" get_entry_name | ( | self, | |
* | args ) |
de | (C++: const direntry_t &) directory entry |
name_flags | (C++: uint32) how exactly the name should be retrieved. combination of bits for get_...name() methods bits |
"char const *" get_id | ( | self, | |
* | args ) |
"dirtree_cursor_t" get_parent_cursor | ( | self, | |
* | args ) |
cursor | (C++: const dirtree_cursor_t &) a valid ditree cursor |
"ssize_t" get_rank | ( | self, | |
* | args ) |
diridx | (C++: diridx_t) index of the parent directory |
de | (C++: const direntry_t &) directory entry |
"qstring" getcwd | ( | self, | |
* | args ) |
"bool" is_dir_ordered | ( | self, | |
* | args ) |
diridx | (C++: diridx_t) |
"bool" is_orderable | ( | self, | |
* | args ) |
"bool" isdir | ( | self, | |
* | args ) |
"bool" isfile | ( | self, | |
* | args ) |
"dterr_t" link | ( | self, | |
* | args ) |
path | char const * |
inode | inode_t |
"bool" load | ( | self, | |
* | args ) |
If dirspec_t.id is empty, the operation will be considered a success. In addition, calling load() more than once will not do anything, and will be considered a success.
"dterr_t" mkdir | ( | self, | |
* | args ) |
path | (C++: const char *) directory to create |
"void" notify_dirtree | ( | self, | |
* | args ) |
added | (C++: bool) are we adding or deleting an inode? |
inode | (C++: inode_t) inode in question |
"dterr_t" rename | ( | self, | |
* | args ) |
from | (C++: const char *) source path |
to | (C++: const char *) destination path |
"direntry_t" resolve_cursor | ( | self, | |
* | args ) |
cursor | (C++: const dirtree_cursor_t &) to analyze |
"direntry_t" resolve_path | ( | self, | |
* | args ) |
path | (C++: const char *) to analyze |
"dterr_t" rmdir | ( | self, | |
* | args ) |
path | (C++: const char *) directory to delete |
"bool" save | ( | self, | |
* | args ) |
"void" set_id | ( | self, | |
* | args ) |
nm | char const * |
"bool" set_natural_order | ( | self, | |
* | args ) |
diridx | (C++: diridx_t) directory index |
enable | (C++: bool) action to do TRUE - enable ordering: re-order existing entries so that all subdirs are at the to beginning of the list, file entries are sorted and placed after the subdirs FALSE - disable ordering, no changes to existing entries |
"ssize_t" traverse | ( | self, | |
* | args ) |
The tree is traversed using a depth-first algorithm. It is forbidden to modify the dirtree_t during traversal; doing so will result in undefined behavior.
v | (C++: dirtree_visitor_t &) the callback |
"dterr_t" unlink | ( | self, | |
* | args ) |
path | char const * |
inode | inode_t |
|
static |
|
static |
|
static |