diff --git a/src_main/io/pidir.cpp b/src_main/io/pidir.cpp index 6c36565a..2494235d 100755 --- a/src_main/io/pidir.cpp +++ b/src_main/io/pidir.cpp @@ -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;