aboutsummaryrefslogtreecommitdiff
path: root/src/lib/fs/files.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-08-12 14:37:21 -0400
committerNick Mathewson <nickm@torproject.org>2020-08-12 14:37:21 -0400
commite1514420377b2290dfa52fa65374276a66973131 (patch)
tree51955f9b7378e1b736af78226105ac01e342fc26 /src/lib/fs/files.h
parent11f1fe3aca08c19ab07d9380c1bd47678c99abc4 (diff)
parent60c436d14d05dcc5e03058a16373c53ff94469c5 (diff)
downloadtor-e1514420377b2290dfa52fa65374276a66973131.tar.gz
tor-e1514420377b2290dfa52fa65374276a66973131.zip
Merge remote-tracking branch 'tor-gitlab/mr/62'
Diffstat (limited to 'src/lib/fs/files.h')
-rw-r--r--src/lib/fs/files.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/fs/files.h b/src/lib/fs/files.h
index 62b79c4cd8..f0178e2b5b 100644
--- a/src/lib/fs/files.h
+++ b/src/lib/fs/files.h
@@ -55,6 +55,8 @@ MOCK_DECL(int,tor_unlink,(const char *pathname));
typedef enum { FN_ERROR, FN_NOENT, FN_FILE, FN_DIR, FN_EMPTY } file_status_t;
file_status_t file_status(const char *filename);
+bool is_file(file_status_t file_type);
+bool is_dir(file_status_t file_type);
int64_t tor_get_avail_disk_space(const char *path);