Changeset 235 for trunk/Library/FileUtilsUnit.pas
- Timestamp:
- Sep 14, 2007, 8:37:54 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Library/FileUtilsUnit.pas
r219 r235 18 18 DIRECTORY_SEPARATOR = '\'; 19 19 PATH_SEPARATOR = ';'; 20 CURRENT_DIRECTORY = '.'; 21 PARENT_DIRECTORY = '..'; 22 FILE_EXTENSION_DELIMITER = '.'; 20 23 21 24 // Drive numbers are one based … … 29 32 LanguageEnvironmentVar = 'LANG'; 30 33 DEFAULT_LANGUAGE = 'EN_US'; 31 HELP_FILE_EXTENSION = '.hlp';34 HELP_FILE_EXTENSION = FILE_EXTENSION_DELIMITER + 'hlp'; 32 35 33 36 … … 255 258 begin 256 259 tmpDirectory := tmpDirectories[i]; 257 if tmpDirectory = '..'then260 if tmpDirectory = PARENT_DIREcTORY then 258 261 begin 259 262 if NOT ((Length(Result) = 2) AND (Result[2] = ':')) then … … 262 265 end; 263 266 end 264 else if tmpDirectory = '.'then267 else if tmpDirectory = CURRENT_DIRECTORY then 265 268 begin 266 269 ; // nothing to do … … 515 518 begin 516 519 tmpName := tmpSearchResults.Name; 517 if (tmpName <> '.') AND (tmpName <> '..') then520 if (tmpName <> CURRENT_DIRECTORY) AND (tmpName <> PARENT_DIRECTORY) then 518 521 begin 519 522 aList.Add(AddDirectorySeparatorIfNotEmpty(aDirectory) + tmpSearchResults.Name );
Note:
See TracChangeset
for help on using the changeset viewer.