Skip to main content Module du Copy item path Source DuConfig Configuration for the du command. DuEntry A single entry produced by du traversal. du_path Traverse path and collect DuEntry results according to config. du_path_with_seen Traverse path with a shared inode set (for deduplication across multiple arguments).
Sets had_error to true if any permission or access errors are encountered. format_size Format a size value for display according to the config. format_time Format a modification time for display. glob_match Simple glob matching supporting * and ? wildcards. parse_block_size Parse a block size string like “1K”, “1M”, “1G”, etc.
Returns the number of bytes per block. parse_threshold Parse a threshold value. Positive means “exclude entries smaller than SIZE”.
Negative means “exclude entries larger than -SIZE”. print_entry Print a single DuEntry. read_exclude_file Read exclude patterns from a file (one per line).