Lines Matching refs:fi

66 #define WIN_FD_TO_MY_FI(fi, fd) \  argument
67 fi.Attrib = fd.dwFileAttributes; \
68 fi.CTime = fd.ftCreationTime; \
69 fi.ATime = fd.ftLastAccessTime; \
70 fi.MTime = fd.ftLastWriteTime; \
71 fi.Size = (((UInt64)fd.nFileSizeHigh) << 32) + fd.nFileSizeLow; \
72 fi.IsAltStream = false; \
73 fi.IsDevice = false;
83 static void Convert_WIN32_FIND_DATA_to_FileInfo(const WIN32_FIND_DATAW &fd, CFileInfo &fi) in Convert_WIN32_FIND_DATA_to_FileInfo() argument
85 WIN_FD_TO_MY_FI(fi, fd); in Convert_WIN32_FIND_DATA_to_FileInfo()
86 fi.Name = us2fs(fd.cFileName); in Convert_WIN32_FIND_DATA_to_FileInfo()
94 static void Convert_WIN32_FIND_DATA_to_FileInfo(const WIN32_FIND_DATA &fd, CFileInfo &fi) in Convert_WIN32_FIND_DATA_to_FileInfo() argument
96 WIN_FD_TO_MY_FI(fi, fd); in Convert_WIN32_FIND_DATA_to_FileInfo()
97 fi.Name = fas2fs(fd.cFileName); in Convert_WIN32_FIND_DATA_to_FileInfo()
117 bool CFindFile::FindFirst(CFSTR path, CFileInfo &fi) in FindFirst() argument
128 Convert_WIN32_FIND_DATA_to_FileInfo(fd, fi); in FindFirst()
147 Convert_WIN32_FIND_DATA_to_FileInfo(fd, fi); in FindFirst()
152 bool CFindFile::FindNext(CFileInfo &fi) in FindNext() argument
160 Convert_WIN32_FIND_DATA_to_FileInfo(fd, fi); in FindNext()
168 Convert_WIN32_FIND_DATA_to_FileInfo(fd, fi); in FindNext()
440 CFileInfo fi; in DoesFileExist() local
441 return fi.Find(name) && !fi.IsDir(); in DoesFileExist()
446 CFileInfo fi; in DoesDirExist() local
447 return fi.Find(name) && fi.IsDir(); in DoesDirExist()
451 CFileInfo fi; in DoesFileOrDirExist() local
452 return fi.Find(name); in DoesFileOrDirExist()
455 bool CEnumerator::NextAny(CFileInfo &fi) in NextAny() argument
458 return _findFile.FindNext(fi); in NextAny()
460 return _findFile.FindFirst(_wildcard, fi); in NextAny()
463 bool CEnumerator::Next(CFileInfo &fi) in Next() argument
467 if (!NextAny(fi)) in Next()
469 if (!fi.IsDots()) in Next()
474 bool CEnumerator::Next(CFileInfo &fi, bool &found) in Next() argument
476 if (Next(fi)) in Next()