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) {
|
bool PIDir::make(bool withParents) {
|
||||||
PIDir d = cleanedPath();
|
PIDir d = cleanedPath();
|
||||||
PIString tp;
|
//PIString tp;
|
||||||
//bool is_abs = isAbsolute();
|
#ifndef WINDOWS
|
||||||
|
bool is_abs = isAbsolute();
|
||||||
|
#endif
|
||||||
if (withParents) {
|
if (withParents) {
|
||||||
PIStringList l = d.path().split(separator);
|
PIStringList l = d.path().split(separator);
|
||||||
//piCout << l;
|
piCout << l;
|
||||||
l.removeAll("");
|
l.removeAll("");
|
||||||
//piCout << l;
|
//piCout << l;
|
||||||
PIString cdp;
|
PIString cdp;
|
||||||
piForeachC (PIString & i, l) {
|
piForeachC (PIString & i, l) {
|
||||||
if (!cdp.isEmpty())
|
if (!cdp.isEmpty()
|
||||||
|
#ifndef WINDOWS
|
||||||
|
|| is_abs
|
||||||
|
#endif
|
||||||
|
)
|
||||||
cdp += separator;
|
cdp += separator;
|
||||||
cdp += i;
|
cdp += i;
|
||||||
//piCout << "dir" << cdp;
|
//piCout << "dir" << cdp;
|
||||||
|
|||||||
Reference in New Issue
Block a user