X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Ffs%2Fdir.h;fp=source%2Ffs%2Fdir.h;h=e964a2d848ae93fd5875711544898608911a58f3;hp=cf2cdeb79c97437f86a7e8ffb4f5bc158aa2c8e8;hb=edf916d784e503505ddac2acef6f3e9a72abb0d6;hpb=5c5ef91ab576f10288e2e3d027aa5c77bf8503a4 diff --git a/source/fs/dir.h b/source/fs/dir.h index cf2cdeb..e964a2d 100644 --- a/source/fs/dir.h +++ b/source/fs/dir.h @@ -37,6 +37,9 @@ std::list list_filtered(const Path &path, const std::string &filter /// Returns the current working directory Path getcwd(); +/// Changes the current working directory +void chdir(const Path &); + /// Returns the user's home directory Path get_home_dir(); @@ -64,9 +67,6 @@ Path get_sys_lib_dir(const std::string &argv0, const std::string &appname); /// Returns a directory containing system-wide architecture-specific files. Path get_sys_lib_dir(); -/// Changes the current working directory -void chdir(const Path &); - /** Looks for a file in a list of paths. Returns the absolute path to the first existing location, or an empty Path if the file is not found at all. */ Path path_lookup(const std::string &, const std::list &);