From 7ca7aede5f26c4bb1b18e850ac037007ff410c58 Mon Sep 17 00:00:00 2001 From: Daniel Larimer Date: Wed, 12 Dec 2012 13:26:41 -0500 Subject: [PATCH] implementing fc::absolute for path --- include/fc/filesystem.hpp | 1 + src/filesystem.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/include/fc/filesystem.hpp b/include/fc/filesystem.hpp index 041c0bb..fbd5276 100644 --- a/include/fc/filesystem.hpp +++ b/include/fc/filesystem.hpp @@ -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 ); diff --git a/src/filesystem.cpp b/src/filesystem.cpp index c102785..ee001a9 100644 --- a/src/filesystem.cpp +++ b/src/filesystem.cpp @@ -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(); } }