diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2012-11-07 18:26:33 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2012-11-07 18:26:33 +0000 |
commit | 6aef664a921b6c68f2260b8a94e24c1c34ea46af (patch) | |
tree | 61a6435802616d6f57c9623218794041feec634b /src/include/gnunet_disk_lib.h | |
parent | 45f6faea1582f1d1664af6836ea2d109853b1d63 (diff) | |
download | gnunet-6aef664a921b6c68f2260b8a94e24c1c34ea46af.tar.gz gnunet-6aef664a921b6c68f2260b8a94e24c1c34ea46af.zip |
making readable check optional
Diffstat (limited to 'src/include/gnunet_disk_lib.h')
-rw-r--r-- | src/include/gnunet_disk_lib.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/include/gnunet_disk_lib.h b/src/include/gnunet_disk_lib.h index 73736be31..9d4cd1820 100644 --- a/src/include/gnunet_disk_lib.h +++ b/src/include/gnunet_disk_lib.h | |||
@@ -663,18 +663,19 @@ GNUNET_DISK_directory_create_for_file (const char *filename); | |||
663 | 663 | ||
664 | 664 | ||
665 | /** | 665 | /** |
666 | * Test if "fil" is a directory and readable. Also check if the directory is | 666 | * Test if "fil" is a directory and listable. Optionally, also check if the |
667 | * listable. Will not print an error message if the directory does not exist. | 667 | * directory is readable. Will not print an error message if the directory does |
668 | * Will log errors if GNUNET_SYSERR is returned (i.e., a file exists with the | 668 | * not exist. Will log errors if GNUNET_SYSERR is returned (i.e., a file exists |
669 | * same name). | 669 | * with the same name). |
670 | * | 670 | * |
671 | * @param fil filename to test | 671 | * @param fil filename to test |
672 | * @param is_listable GNUNET_YES to additionally check if "fil" is listable | 672 | * @param is_readable GNUNET_YES to additionally check if "fil" is readable; |
673 | * @return GNUNET_YES if yes, GNUNET_NO if not, GNUNET_SYSERR if it | 673 | * GNUNET_NO to disable this check |
674 | * does not exist | 674 | * @return GNUNET_YES if yes, GNUNET_NO if not; GNUNET_SYSERR if it |
675 | * does not exist or stat'ed | ||
675 | */ | 676 | */ |
676 | int | 677 | int |
677 | GNUNET_DISK_directory_test (const char *fil, int is_listable); | 678 | GNUNET_DISK_directory_test (const char *fil, int is_readable); |
678 | 679 | ||
679 | 680 | ||
680 | /** | 681 | /** |