add tmp/unique dir wrapper for boost filesystem

This commit is contained in:
Daniel Larimer 2012-11-26 14:16:49 -05:00
parent 5fa8a60aeb
commit 1a5e10ee26
2 changed files with 5 additions and 0 deletions

View file

@ -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_

View file

@ -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(); }
}