diff --git a/include/fc/filesystem.hpp b/include/fc/filesystem.hpp index 551dc42..4045df1 100644 --- a/include/fc/filesystem.hpp +++ b/include/fc/filesystem.hpp @@ -66,6 +66,9 @@ namespace fc { uint64_t file_size( const path& p ); bool remove( const path& p ); void copy( const path& from, const path& to ); + + path unique_path(); + path temp_directory_path(); } #endif // _FC_FILESYSTEM_HPP_ diff --git a/src/filesystem.cpp b/src/filesystem.cpp index d56fa0e..ce40900 100644 --- a/src/filesystem.cpp +++ b/src/filesystem.cpp @@ -78,4 +78,6 @@ namespace fc { void copy( const path& f, const path& t ) { boost::filesystem::copy( f, t ); } bool remove( const path& f ) { return boost::filesystem::remove( f ); } fc::path canonical( const fc::path& p ) { return boost::filesystem::canonical(p); } + path unique_path() { return boost::filesystem::unique_path(); } + path temp_directory_path() { return boost::filesystem::temp_directory_path(); } }