diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-10-03T20·37+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-10-03T20·37+0200 |
commit | 3f8576a6abedfa7c16d6f13dbdbabaa695cf60bb (patch) | |
tree | e1aad65d6748f23229b06768d61c21401de2a98f /src/libutil/util.hh | |
parent | c08c802bf31ce739e0de6d1fbfe4d58b808ae9bb (diff) |
Remove some duplicate code
Diffstat (limited to 'src/libutil/util.hh')
-rw-r--r-- | src/libutil/util.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libutil/util.hh b/src/libutil/util.hh index 4f9f7422c09f..b35e02dceb60 100644 --- a/src/libutil/util.hh +++ b/src/libutil/util.hh @@ -77,6 +77,8 @@ typedef vector<DirEntry> DirEntries; DirEntries readDirectory(const Path & path); +unsigned char getFileType(const Path & path); + /* Read the contents of a file into a string. */ string readFile(int fd); string readFile(const Path & path, bool drain = false); |