Dots: single, double in filepath

This is shamelessly copied from this StackOverflow post.
I just always have problem finding it, when needed, so I posted it here in my quicklookup.
I hope sourabh does not mind.