#include "machine.h"Include dependency graph for createdir.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Functions | |
| BOOL | CreateDir (const char *path) |
| BOOL | ExistDir (char *path) |
| BOOL | RemoveDir (char *path) |
| BOOL CreateDir | ( | const char * | path | ) |
Definition at line 44 of file createdir.c.
References DIRMODE, ExistDir(), FALSE, NULL, and TRUE.
Referenced by setSCIHOME(), and settmpdir().
00045 { 00046 BOOL bOK=FALSE; 00047 #ifndef _MSC_VER 00048 if (!ExistDir(path)) 00049 { 00050 if (mkdir(path, DIRMODE) == 0) 00051 { 00052 bOK=TRUE; 00053 } 00054 } 00055 #else 00056 if (CreateDirectory(path,NULL)) bOK=TRUE; 00057 #endif 00058 return bOK; 00059 }
Here is the call graph for this function:

Here is the caller graph for this function:

| BOOL ExistDir | ( | char * | path | ) |
Definition at line 26 of file createdir.c.
References FALSE, NULL, stat, and TRUE.
Referenced by CreateDir(), RemoveDir(), and setSCIHOME().
00027 { 00028 BOOL bOK=FALSE; 00029 #ifndef _MSC_VER 00030 struct stat buf; 00031 if (path == NULL) return FALSE; 00032 if (stat(path, &buf) == 0 && S_ISDIR(buf.st_mode)) bOK=TRUE; 00033 #else 00034 WIN32_FIND_DATA ffd; 00035 HANDLE sh = FindFirstFile(path, &ffd); 00036 00037 if(INVALID_HANDLE_VALUE == sh) return FALSE; 00038 if(ffd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) bOK=TRUE; 00039 #endif 00040 00041 return bOK; 00042 }
Here is the caller graph for this function:

| BOOL RemoveDir | ( | char * | path | ) |
Definition at line 61 of file createdir.c.
References DeleteDirectory(), ExistDir(), FALSE, and TRUE.
Referenced by tmpdirc().
00062 { 00063 BOOL bOK=FALSE; 00064 if (ExistDir(path)) 00065 { 00066 DeleteDirectory(path); 00067 if (!ExistDir(path)) bOK=TRUE; 00068 } 00069 return bOK; 00070 }
Here is the call graph for this function:

Here is the caller graph for this function:

1.5.1