diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-06-16 11:34:03 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-06-16 11:34:03 +0000 |
commit | a86fe90ed0cfc9597194b7b3411cf5c8a5c39515 (patch) | |
tree | de616935a1ca5ac05202d6771ae1589821f41b9c /src/fs/fs_file_information.c | |
parent | 8aba932e572ee124f5a1b64f150fa360179cd8f1 (diff) | |
download | gnunet-a86fe90ed0cfc9597194b7b3411cf5c8a5c39515.tar.gz gnunet-a86fe90ed0cfc9597194b7b3411cf5c8a5c39515.zip |
is dir test
Diffstat (limited to 'src/fs/fs_file_information.c')
-rw-r--r-- | src/fs/fs_file_information.c | 13 |
1 files changed, 13 insertions, 0 deletions
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 | |||
@@ -628,6 +628,19 @@ GNUNET_FS_file_information_create_from_directory (struct GNUNET_FS_Handle *h, | |||
628 | 628 | ||
629 | 629 | ||
630 | /** | 630 | /** |
631 | * Test if a given entry represents a directory. | ||
632 | * | ||
633 | * @param ent check if this FI represents a directory | ||
634 | * @return GNUNET_YES if so, GNUNET_NO if not | ||
635 | */ | ||
636 | int | ||
637 | GNUNET_FS_file_information_is_directory (struct GNUNET_FS_FileInformation *ent) | ||
638 | { | ||
639 | return ent->is_directory; | ||
640 | } | ||
641 | |||
642 | |||
643 | /** | ||
631 | * Create an entry for an empty directory in a publish-structure. | 644 | * Create an entry for an empty directory in a publish-structure. |
632 | * This function should be used by applications for which the | 645 | * This function should be used by applications for which the |
633 | * use of "GNUNET_FS_file_information_create_from_directory" | 646 | * use of "GNUNET_FS_file_information_create_from_directory" |