# Comparing two files f and g : File tests « File Directory « Ruby






# Comparing two files f and g

test ?-, f, g              # File.identical(f,g)
test ?<, f, g              # File(f).mtime < File(g).mtime
test ?>, f, g              # File(f).mtime > File(g).mtime
test ?=, f, g              # File(f).mtime == File(g).mtime

 








Related examples in the same category

1.File Tests method list
2.File tests for two files
3.Testing single files