diff options
Diffstat (limited to 'core/libdeno/file_util.h')
-rw-r--r-- | core/libdeno/file_util.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/core/libdeno/file_util.h b/core/libdeno/file_util.h new file mode 100644 index 000000000..0177f2c94 --- /dev/null +++ b/core/libdeno/file_util.h @@ -0,0 +1,14 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. +#ifndef FILE_UTIL_H_ +#define FILE_UTIL_H_ + +#include <string> + +namespace deno { +bool ReadFileToString(const char* fn, std::string* contents); +std::string Basename(std::string const& filename); +std::string Dirname(std::string const& filename); +bool ExePath(std::string* path); +} // namespace deno + +#endif // FILE_UTIL_H_ |