From a86fe90ed0cfc9597194b7b3411cf5c8a5c39515 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 16 Jun 2010 11:34:03 +0000 Subject: is dir test --- src/fs/fs_file_information.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/fs/fs_file_information.c') diff --git a/src/fs/fs_file_information.c b/src/fs/fs_file_information.c index c04c5a56e..367061cae 100644 --- a/src/fs/fs_file_information.c +++ b/src/fs/fs_file_information.c @@ -627,6 +627,19 @@ GNUNET_FS_file_information_create_from_directory (struct GNUNET_FS_Handle *h, } +/** + * Test if a given entry represents a directory. + * + * @param ent check if this FI represents a directory + * @return GNUNET_YES if so, GNUNET_NO if not + */ +int +GNUNET_FS_file_information_is_directory (struct GNUNET_FS_FileInformation *ent) +{ + return ent->is_directory; +} + + /** * Create an entry for an empty directory in a publish-structure. * This function should be used by applications for which the -- cgit v1.2.3