implementing fc::absolute for path

This commit is contained in:
Daniel Larimer 2012-12-12 13:26:41 -05:00
parent b35f6880c6
commit 7ca7aede5f
2 changed files with 2 additions and 0 deletions

View file

@ -62,6 +62,7 @@ namespace fc {
bool is_directory( const path& p );
bool is_regular_file( const path& p );
void create_directories( const path& p );
path absolute( const path& p );
path canonical( const path& p );
uint64_t file_size( const path& p );
bool remove( const path& p );

View file

@ -94,6 +94,7 @@ 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); }
fc::path absolute( const fc::path& p ) { return boost::filesystem::absolute(p); }
path unique_path() { return boost::filesystem::unique_path(); }
path temp_directory_path() { return boost::filesystem::temp_directory_path(); }
}