X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ffs%2Fdir.h;h=be5fac8662533b908cd720059e25deece28a81f4;hb=9f754b788b872f9768af8c3a4f9e001a588e011a;hp=cf2cdeb79c97437f86a7e8ffb4f5bc158aa2c8e8;hpb=5c5ef91ab576f10288e2e3d027aa5c77bf8503a4;p=libs%2Fcore.git diff --git a/source/fs/dir.h b/source/fs/dir.h index cf2cdeb..be5fac8 100644 --- a/source/fs/dir.h +++ b/source/fs/dir.h @@ -37,36 +37,24 @@ 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(); -/// Deprecated. Use the argument-less version instead. -Path get_user_data_dir(const std::string &appname); - /// Returns a directory suitable for storing user-specific data. Path get_user_data_dir(); -/// Deprecated. Use the argument-less version instead. -Path get_sys_conf_dir(const std::string &argv0); - /// Returns a directory containing system-wide configuration. Path get_sys_conf_dir(); -/// Deprecated. Use the argument-less version instead. -Path get_sys_data_dir(const std::string &argv0, const std::string &appname); - /// Returns a directory containing immutable system-wide data. Path get_sys_data_dir(); -/// Deprecated. Use the argument-less version instead. -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 &);