Added getDate, file.exists and dir.exists

Check docs