fixed boost.filesystem usage to not rely on deprecated functions

This commit is contained in:
Arvid Norberg
2008-11-21 23:38:07 +00:00
parent 446d3b51f0
commit 357d548bb5
7 changed files with 21 additions and 18 deletions

View File

@@ -49,6 +49,7 @@ POSSIBILITY OF SUCH DAMAGE.
using boost::filesystem::remove_all;
using boost::filesystem::create_directory;
using namespace libtorrent;
namespace sf = boost::filesystem;
void print_alerts(libtorrent::session& ses, char const* name
, bool allow_disconnects, bool allow_no_torrents, bool allow_failed_fastresume)
@@ -128,7 +129,7 @@ void start_web_server(int port, bool ssl)
std::ofstream f("lighty_config");
f << "server.modules = (\"mod_access\", \"mod_redirect\", \"mod_setenv\")\n"
"server.document-root = \"" << boost::filesystem::initial_path().string() << "\"\n"
"server.document-root = \"" << fs::initial_path<fs::path>().string() << "\"\n"
"server.range-requests = \"enable\"\n"
"server.port = " << port << "\n"
"server.pid-file = \"./lighty" << port << ".pid\"\n"

View File

@@ -544,7 +544,7 @@ int test_main()
char* env = std::getenv("TORRENT_TEST_PATHS");
if (env == 0)
{
test_paths.push_back(initial_path());
test_paths.push_back(initial_path<path>());
}
else
{