A node of a directory tree. More...
Data Fields | |
struct ScanTreeNode * | next |
This is a doubly-linked list. More... | |
struct ScanTreeNode * | prev |
This is a doubly-linked list. More... | |
struct ScanTreeNode * | parent |
Parent of this node, NULL for top-level entries. More... | |
struct ScanTreeNode * | children_head |
This is a doubly-linked tree NULL for files and empty directories. More... | |
struct ScanTreeNode * | children_tail |
This is a doubly-linked tree NULL for files and empty directories. More... | |
char * | filename |
Name of the file/directory. More... | |
uint64_t | file_size |
Size of the file (if it is a file), in bytes. More... | |
int | is_directory |
GNUNET_YES if this is a directory More... | |
A node of a directory tree.
Definition at line 37 of file gnunet-helper-fs-publish.c.
struct ScanTreeNode* ScanTreeNode::next |
This is a doubly-linked list.
Definition at line 42 of file gnunet-helper-fs-publish.c.
Referenced by extract_files().
struct ScanTreeNode* ScanTreeNode::prev |
This is a doubly-linked list.
Definition at line 47 of file gnunet-helper-fs-publish.c.
struct ScanTreeNode* ScanTreeNode::parent |
Parent of this node, NULL for top-level entries.
Definition at line 52 of file gnunet-helper-fs-publish.c.
Referenced by free_tree(), and scan_callback().
struct ScanTreeNode* ScanTreeNode::children_head |
This is a doubly-linked tree NULL for files and empty directories.
Definition at line 58 of file gnunet-helper-fs-publish.c.
Referenced by extract_files(), free_tree(), and scan_callback().
struct ScanTreeNode* ScanTreeNode::children_tail |
This is a doubly-linked tree NULL for files and empty directories.
Definition at line 64 of file gnunet-helper-fs-publish.c.
Referenced by free_tree(), and scan_callback().
char* ScanTreeNode::filename |
Name of the file/directory.
Definition at line 69 of file gnunet-helper-fs-publish.c.
Referenced by extract_files(), free_tree(), and preprocess_file().
uint64_t ScanTreeNode::file_size |
Size of the file (if it is a file), in bytes.
At the moment it is set to 0 for directories.
Definition at line 75 of file gnunet-helper-fs-publish.c.
Referenced by preprocess_file().
int ScanTreeNode::is_directory |
GNUNET_YES if this is a directory
Definition at line 80 of file gnunet-helper-fs-publish.c.
Referenced by extract_files(), and preprocess_file().