DatabasePrint: move code to PrintDirectoryURI()
This commit is contained in:
parent
6765234b60
commit
20cdab5546
@ -32,11 +32,17 @@
|
|||||||
|
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
|
||||||
|
static void
|
||||||
|
PrintDirectoryURI(Client &client, const LightDirectory &directory)
|
||||||
|
{
|
||||||
|
client_printf(client, "directory: %s\n", directory.GetPath());
|
||||||
|
}
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
PrintDirectoryBrief(Client &client, const LightDirectory &directory)
|
PrintDirectoryBrief(Client &client, const LightDirectory &directory)
|
||||||
{
|
{
|
||||||
if (!directory.IsRoot())
|
if (!directory.IsRoot())
|
||||||
client_printf(client, "directory: %s\n", directory.GetPath());
|
PrintDirectoryURI(client, directory);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -45,7 +51,7 @@ static bool
|
|||||||
PrintDirectoryFull(Client &client, const LightDirectory &directory)
|
PrintDirectoryFull(Client &client, const LightDirectory &directory)
|
||||||
{
|
{
|
||||||
if (!directory.IsRoot()) {
|
if (!directory.IsRoot()) {
|
||||||
client_printf(client, "directory: %s\n", directory.GetPath());
|
PrintDirectoryURI(client, directory);
|
||||||
|
|
||||||
if (directory.mtime > 0)
|
if (directory.mtime > 0)
|
||||||
time_print(client, "Last-Modified", directory.mtime);
|
time_print(client, "Last-Modified", directory.mtime);
|
||||||
|
Loading…
Reference in New Issue
Block a user