]> git.tdb.fi Git - libs/core.git/blobdiff - source/fs/dir.h
Split getcwd and chdir to platform files
[libs/core.git] / source / fs / dir.h
index cf2cdeb79c97437f86a7e8ffb4f5bc158aa2c8e8..e964a2d848ae93fd5875711544898608911a58f3 100644 (file)
@@ -37,6 +37,9 @@ std::list<std::string> 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<Path> &);