Feature #462: url support

- added uri class for proper uri and path handling
This commit is contained in:
Johannes Schlatow
2010-10-06 16:11:32 +02:00
parent b041e54be6
commit 042d7b40de
17 changed files with 505 additions and 343 deletions

View File

@@ -1267,8 +1267,11 @@ int handleImport (std::string &outs)
#if FEATURE_URL > 0
std::string tmpfile = "";
Uri uri (file);
uri.parse ();
Transport* transport;
if ((transport = Transport::getTransport (file)) != NULL )
if ((transport = Transport::getTransport (uri)) != NULL )
{
std::string location (context.config.get ("data.location"));
tmpfile = location + "/import.data";