diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-08-12 14:37:21 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-08-12 14:37:21 -0400 |
commit | e1514420377b2290dfa52fa65374276a66973131 (patch) | |
tree | 51955f9b7378e1b736af78226105ac01e342fc26 /src/lib/fs/files.h | |
parent | 11f1fe3aca08c19ab07d9380c1bd47678c99abc4 (diff) | |
parent | 60c436d14d05dcc5e03058a16373c53ff94469c5 (diff) | |
download | tor-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.h | 2 |
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); |