From 43f7733dfdd8700430a238d230ed573c12e72c87 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 8 Feb 2009 13:12:41 +0000 Subject: added filesystem::FileStream --- src/sys/sys.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/sys/sys.h') diff --git a/src/sys/sys.h b/src/sys/sys.h index 81eba94..5e41daa 100644 --- a/src/sys/sys.h +++ b/src/sys/sys.h @@ -22,7 +22,10 @@ namespace sys typedef void(* signalfunc)(int signum); /// returns true if a path exists and it is a directory -bool isdirectory(const std::string &path); +bool directory_exists(const std::string &path); + +/// returns true if a file exists +bool file_exists(const std::string &filename); /// create a directory void mkdir(const std::string &path); -- cgit v1.2.3