Closed dannyob closed 10 months ago
I guess this is a bit opinionated, but I'm kind of find with sending a 0 byte file. It's what you asked for.
It also gets complex when sending a huge directory tree that may contain some 0-size files (think a build directory with some make "touch" files).
I'm with @flub here. A 0 byte file is a perfectly valid file. There is nothing wrong with it. 0 byte files are sometimes used as lockfiles or whatever.
closing as won't-fix
Probably should error out under this condition