diff options
Diffstat (limited to 'plugins/CopyEngine/Ultracopier/ListThread.cpp')
-rw-r--r-- | plugins/CopyEngine/Ultracopier/ListThread.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/CopyEngine/Ultracopier/ListThread.cpp b/plugins/CopyEngine/Ultracopier/ListThread.cpp index 970536a..bb0bce6 100644 --- a/plugins/CopyEngine/Ultracopier/ListThread.cpp +++ b/plugins/CopyEngine/Ultracopier/ListThread.cpp @@ -491,6 +491,9 @@ bool ListThread::newCopy(const std::vector<std::string> &sources,const std::stri while(index<sources.size()) { std::string source=sources.at(index); + //can be: file://192.168.0.99/share/file.txt + //can be: file:///C:/file.txt + //can be: file:///home/user/fileatrootunderunix #ifndef Q_OS_WIN if(stringStartWith(source,"file:///")) source.replace(0,7,""); @@ -498,12 +501,14 @@ bool ListThread::newCopy(const std::vector<std::string> &sources,const std::stri if(stringStartWith(source,"file:///")) source.replace(0,8,""); else if(stringStartWith(source,"file://")) - source.replace(0,7,""); + source.replace(0,5,""); else if(stringStartWith(source,"file:/")) source.replace(0,6,""); #endif else if (std::regex_match(source, base_match, base_regex)) return false; + if(index<99) + ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,sources.at(index)+" -> "+source); index++; sourcesClean.push_back(source); } |