In most filesystems, folders are also just files. So creating an empty folder is like creating an empty text document – the file exists, it has metadata, but its size is 0 until you fill it with something.
A folder on-disk can literally be as simple as a flat sequence of “(filename, location)” pairs.
Latest Answers