Fossil SCM
Call file_wd_isdir() in file_mkdir().
Commit
13120e9620d71fd42fe325c50497405cc177e59f
Parent
f1329470c033c74…
1 file changed
+1
-1
+1
-1
| --- src/file.c | ||
| +++ src/file.c | ||
| @@ -394,11 +394,11 @@ | ||
| 394 | 394 | ** with the same name. |
| 395 | 395 | ** |
| 396 | 396 | ** Return the number of errors. |
| 397 | 397 | */ |
| 398 | 398 | int file_mkdir(const char *zName, int forceFlag){ |
| 399 | - int rc = file_isdir(zName); | |
| 399 | + int rc = file_wd_isdir(zName); | |
| 400 | 400 | if( rc==2 ){ |
| 401 | 401 | if( !forceFlag ) return 1; |
| 402 | 402 | file_delete(zName); |
| 403 | 403 | } |
| 404 | 404 | if( rc!=1 ){ |
| 405 | 405 |
| --- src/file.c | |
| +++ src/file.c | |
| @@ -394,11 +394,11 @@ | |
| 394 | ** with the same name. |
| 395 | ** |
| 396 | ** Return the number of errors. |
| 397 | */ |
| 398 | int file_mkdir(const char *zName, int forceFlag){ |
| 399 | int rc = file_isdir(zName); |
| 400 | if( rc==2 ){ |
| 401 | if( !forceFlag ) return 1; |
| 402 | file_delete(zName); |
| 403 | } |
| 404 | if( rc!=1 ){ |
| 405 |
| --- src/file.c | |
| +++ src/file.c | |
| @@ -394,11 +394,11 @@ | |
| 394 | ** with the same name. |
| 395 | ** |
| 396 | ** Return the number of errors. |
| 397 | */ |
| 398 | int file_mkdir(const char *zName, int forceFlag){ |
| 399 | int rc = file_wd_isdir(zName); |
| 400 | if( rc==2 ){ |
| 401 | if( !forceFlag ) return 1; |
| 402 | file_delete(zName); |
| 403 | } |
| 404 | if( rc!=1 ){ |
| 405 |