Mega Code Archive

 
Categories / Ruby / File Directory
 

# 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