3 This file is part of libmspfs
4 Copyright © 2006-2008 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
19 /// Creates a directory
20 void mkdir(const Path &path, int mode);
22 /// Creates a directory and any required parent directories
23 void mkpath(const Path &path, int mode);
25 /// Removes a directory, which must be empty
26 void rmdir(const Path &path);
28 /// Removes a directory and anything it contains
29 void rmpath(const Path &path);
31 /// Lists the contents of a directory
32 std::list<std::string> list_files(const Path &path);
34 /// Lists the contents of a directory, filtered with a regex
35 std::list<std::string> list_filtered(const Path &path, const std::string &filter);
37 /// Returns the current working directory
40 /// Returns the user's home directory
43 /// Returns a directory suitable for storing user-specific data
44 Path get_user_data_dir(const std::string &appname);
46 /// Changes the current working directory
47 void chdir(const Path &);