Mega Code Archive

 
Categories / Ruby / File Directory
 

File tests for two files

Test    Returns Description ?-      Boolean True if file1 and file2 are identical ?=      Boolean True if the modification times of file1 and file2 are equal ?<      Boolean True if the modification time of file1 is prior to that of file2 ?>      Boolean True if the modification time of file1 is after that of file2