ruby - Checking if a file exists in the user's home directory -
how i, say, determine if file ~/.my_proj_config
exists on os in ruby?
a call dir.home os independent way home directory user. can use like
file.exists?(file.join(dir.home, ".my_proj_config"))
Comments
Post a Comment