From eb9cda021947dc3e2563b8e6ad85ef708d39edbb Mon Sep 17 00:00:00 2001 From: cxl Date: Tue, 1 Jan 2013 13:56:30 +0000 Subject: [PATCH] Core: bool RealizeDirectory(const String& d) fixed to work with network names (thanks koldo) git-svn-id: svn://ultimatepp.org/upp/trunk@5696 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Core/Path.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/uppsrc/Core/Path.cpp b/uppsrc/Core/Path.cpp index 16ed50243..c3917a76c 100644 --- a/uppsrc/Core/Path.cpp +++ b/uppsrc/Core/Path.cpp @@ -1008,12 +1008,11 @@ bool RealizeDirectory(const String& d) { String dir = NormalizePath(d); Vector p; - while(dir.GetLength() > DIR_MIN) { + while(dir.GetLength() > DIR_MIN && !DirectoryExists(dir)) { p.Add(dir); dir = GetFileFolder(dir); } for(int i = p.GetCount() - 1; i >= 0; i--) - if(!DirectoryExists(p[i])) #ifdef POSIX if(!DirectoryCreate(p[i], mode)) #else