File Directory Ruby

putsĀ File.mtime("text.txt")