Move the common path-is-directory check into tools.c and declare it in net.h. Replace the local NDIR and Trustee helper implementations with tool_path_is_dir(), and update NDIR, REMOVE and REVOKE callers to use the shared helper directly. The helper preserves the existing behavior of treating empty and current-directory paths as directories and otherwise falling back to stat(). No behavior change.
10 KiB
10 KiB