File tests for two files : File tests « File Directory « Ruby






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

 








Related examples in the same category

1.File Tests method list
2.Testing single files
3.# Comparing two files f and g