Why are folders/directories not able to be attached to emails?

1

I know how to attach multiple files to emails, just add them to an archive and send the archive instead. But I'm curious, why exactly can't we attach actual directories to emails? Is it a technology issue? It's 2015, wouldn't we have figured this out by now?

I have searched this question on Google but I just see websites telling me how to send multiple files (by archiving them).

Fam

Posted 2015-10-28T17:43:40.237

Reputation: 35

2It would be inefficient and possibly not portable. You would be trying to send a piece of a filesystem. First you would have to reconstruct a mini-filesystem that consisted of just the directory you want to send. Then you would be sending not just the salient data, but also the filesystem metadata. Then what to do with it when received? You're creating more problems than solving one. Sending an archive is practical because it is efficient and portable. – sawdust – 2015-10-28T18:20:39.897

Answers

4

Short answer, Folders don't actually exist the way files do.

A directory/folder is a metadata abstraction created by the filesystem, and while their names exist as metadata, and their contents are linked to their names, that data can't stand on its own outside of the filesystem on which they were established. Every filesystem and OS handle them differantly, and there is no likelihood of cross-platform compatibility. tar/zip/etc were developed to be cross-platform, so they already perform that task.

We could have figured out a way to do as you suggest, but it would be a huge endeavor, and no one has seen that as a meaningful improvement over the ability to just zip/tar/rar a set of files together.

Frank Thomas

Posted 2015-10-28T17:43:40.237

Reputation: 29 039

Thank you, that clears it right up. I forgot that directories exist on the filesystem only. – Fam – 2015-10-28T20:02:11.030