add tmp/unique dir wrapper for boost filesystem
This commit is contained in:
parent
5fa8a60aeb
commit
1a5e10ee26
2 changed files with 5 additions and 0 deletions
|
|
@ -66,6 +66,9 @@ namespace fc {
|
||||||
uint64_t file_size( const path& p );
|
uint64_t file_size( const path& p );
|
||||||
bool remove( const path& p );
|
bool remove( const path& p );
|
||||||
void copy( const path& from, const path& to );
|
void copy( const path& from, const path& to );
|
||||||
|
|
||||||
|
path unique_path();
|
||||||
|
path temp_directory_path();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // _FC_FILESYSTEM_HPP_
|
#endif // _FC_FILESYSTEM_HPP_
|
||||||
|
|
|
||||||
|
|
@ -78,4 +78,6 @@ namespace fc {
|
||||||
void copy( const path& f, const path& t ) { boost::filesystem::copy( f, t ); }
|
void copy( const path& f, const path& t ) { boost::filesystem::copy( f, t ); }
|
||||||
bool remove( const path& f ) { return boost::filesystem::remove( f ); }
|
bool remove( const path& f ) { return boost::filesystem::remove( f ); }
|
||||||
fc::path canonical( const fc::path& p ) { return boost::filesystem::canonical(p); }
|
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(); }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue