git-svn-id: svn://db.shs.com.ru/pip@127 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2015-05-06 08:28:50 +00:00
parent 53d8c53a50
commit 6283d78b03
2 changed files with 6 additions and 3 deletions

View File

@@ -19,6 +19,7 @@
#include "piiodevice.h"
#include "piconfig.h"
#include "piconnection.h"
/*! \class PIIODevice
@@ -306,10 +307,14 @@ PIString PIIODevice::normalizeFullPath(const PIString & full_path) {
if (!ret.isEmpty())
return ret;
//piCout << "normalizeFullPath" << full_path;
PIIODevice * d = createFromFullPath(full_path);
PIString fp; PIIODevice::DeviceMode md;
PIConnection::splitFullPathWithMode(full_path, &fp, &md);
PIIODevice * d = createFromFullPath(fp);
//piCout << "normalizeFullPath" << d;
if (d == 0) return PIString();
ret = d->constructFullPath();
if (md == PIIODevice::ReadOnly) ret += " (ro)";
if (md == PIIODevice::WriteOnly) ret += " (wo)";
delete d;
nfp_cache[full_path] = ret;
return ret;