git-svn-id: svn://db.shs.com.ru/pip@503 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -185,16 +185,22 @@ PIDir & PIDir::cd(const PIString & path) {
|
||||
|
||||
bool PIDir::make(bool withParents) {
|
||||
PIDir d = cleanedPath();
|
||||
PIString tp;
|
||||
//bool is_abs = isAbsolute();
|
||||
//PIString tp;
|
||||
#ifndef WINDOWS
|
||||
bool is_abs = isAbsolute();
|
||||
#endif
|
||||
if (withParents) {
|
||||
PIStringList l = d.path().split(separator);
|
||||
//piCout << l;
|
||||
piCout << l;
|
||||
l.removeAll("");
|
||||
//piCout << l;
|
||||
PIString cdp;
|
||||
piForeachC (PIString & i, l) {
|
||||
if (!cdp.isEmpty())
|
||||
if (!cdp.isEmpty()
|
||||
#ifndef WINDOWS
|
||||
|| is_abs
|
||||
#endif
|
||||
)
|
||||
cdp += separator;
|
||||
cdp += i;
|
||||
//piCout << "dir" << cdp;
|
||||
|
||||
Reference in New Issue
Block a user