mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-25 14:22:54 -06:00
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:
parent
47e4146493
commit
eb9cda0219
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue