Changeset 109 in libcf for trunk/src/cf_file.c


Ignore:
Timestamp:
06/04/13 14:25:10 (11 years ago)
Author:
cheese
Message:

#1 add typical data structure algorithms (linked-list / queue / stak) and rename symbol for context of each modules

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/cf_file.c

    r95 r109  
    219219
    220220/**
     221 * 파일 및 디렉터리 존재 여부 검사
     222 *
     223 * @return 존재 시, CF_TRUE; 아니면, CF_FALSE
     224 *
     225 * @param path 파일 및 디렉터리 경로
     226 */
     227CF_BOOL
     228CF_File_Exists (const char * path)
     229{
     230    return (access (path, F_OK) == 0) ? CF_TRUE : CF_FALSE;
     231}
     232
     233/**
    221234 * 디렉터리 생성
    222235 *
     
    244257            continue;
    245258
    246         if (access (stepPath, F_OK) == 0)
     259        if (CF_File_Exists (stepPath))
    247260            continue;
    248261
Note: See TracChangeset for help on using the changeset viewer.