HomePhorge

Mark diffusion browse result as empty directory when appropriate

Description

Mark diffusion browse result as empty directory when appropriate

Summary:
When selecting children of a directory, it is possible that none of its
children exist anymore even though the directory still exists. After fetching
the children but before returning them, we should check whether there are any,
and if there are no children, set the reason as empty directory.

Test Plan:
In sandbox, browsed in diffusion to a directory that exists but has no
files and saw that it has a useful message instead of a vague exception.

Reviewers: epriestley, tuomaspelkonen, jungejason

Reviewed By: tuomaspelkonen

CC: aran, tuomaspelkonen

Differential Revision: 846

Details

Provenance
Nicholas HarperAuthored on Aug 22 2011, 1:33 PM
themackabuPushed on Mar 25 2025, 8:07 PM
Parents
rPfbef90c4c645: Added the ability to support Irc Bots that need to login into private IRC…
Branches
Unknown
Tags
Unknown

Event Timeline