Fossil

Check-in [13120e96]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Call file_wd_isdir() in file_mkdir().
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 13120e9620d71fd42fe325c50497405cc177e59f
User & Date: dmitry 2011-09-27 19:28:21.503
Context
2011-09-28
11:35
Use the check-in time as the timestamp for zlib compression on tarballs, os that every tarball for the same check-in is identical. ... (check-in: 3e141b79 user: drh tags: trunk)
2011-09-27
19:28
Call file_wd_isdir() in file_mkdir(). ... (check-in: 13120e96 user: dmitry tags: trunk)
19:15
Change a few instances of file_isdir() to file_wd_isdir(). ... (check-in: f1329470 user: dmitry tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/file.c.
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
** Create the directory named in the argument, if it does not already
** exist.  If forceFlag is 1, delete any prior non-directory object 
** with the same name.
**
** Return the number of errors.
*/
int file_mkdir(const char *zName, int forceFlag){
  int rc = file_isdir(zName);
  if( rc==2 ){
    if( !forceFlag ) return 1;
    file_delete(zName);
  }
  if( rc!=1 ){
#if defined(_WIN32)
    int rc;







|







392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
** Create the directory named in the argument, if it does not already
** exist.  If forceFlag is 1, delete any prior non-directory object 
** with the same name.
**
** Return the number of errors.
*/
int file_mkdir(const char *zName, int forceFlag){
  int rc = file_wd_isdir(zName);
  if( rc==2 ){
    if( !forceFlag ) return 1;
    file_delete(zName);
  }
  if( rc!=1 ){
#if defined(_WIN32)
    int rc;