1.1 --- a/libfsclient/lib/src/file.cc Sat Sep 18 18:51:43 2021 +0200
1.2 +++ b/libfsclient/lib/src/file.cc Mon Sep 20 01:16:59 2021 +0200
1.3 @@ -25,6 +25,7 @@
1.4 #include <string.h>
1.5
1.6 #include "dataspace_client.h"
1.7 +#include "directory_client.h"
1.8 #include "file_client.h"
1.9 #include "filesystem_client.h"
1.10 #include "flush_client.h"
1.11 @@ -545,4 +546,15 @@
1.12 return -L4_EINVAL;
1.13 }
1.14
1.15 +
1.16 +
1.17 +/* Obtain a directory listing stream from a directory. */
1.18 +
1.19 +long directory_opendir(file_t *file, file_t *reader)
1.20 +{
1.21 + client_Directory directory(file->ref);
1.22 + file_init(reader);
1.23 + return directory.opendir(&reader->size, &reader->ref, &reader->object_flags);
1.24 +}
1.25 +
1.26 // vim: tabstop=2 expandtab shiftwidth=2