What is the difference between a directory and a file with no extension?

directory, file, file-extension, operating-system

Solution

You cannot have a directory and a file of the same name (regardless of extension), just like you cannot have two files of the same name.

A directory is just a file, too.

The difference is that a directory can contain other files. It does not matter how it is called, it can have an extension (or two). What makes it a directory is that it was created as such.

Problem

On nearly all types of computers (if not all), folders have no extension. So I was wondering, what is the difference between a directory and a file with no extension? Don't they have the same name?

Original source