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
This commit is contained in:
cxl 2013-01-01 13:56:30 +00:00
parent 47e4146493
commit eb9cda0219

View file

@ -1008,12 +1008,11 @@ bool RealizeDirectory(const String& d)
{
String dir = NormalizePath(d);
Vector<String> 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