webwormhole icon indicating copy to clipboard operation
webwormhole copied to clipboard

Copying file timestamp

Open kennethtom opened this issue 5 years ago • 3 comments

Please consider transferring the file timestamp from the source to the destination, just like the file name

kennethtom avatar May 03 '20 00:05 kennethtom

maybe also preserve file permissions?

both would only apply to the command line tool, and not the web interface.

saljam avatar May 03 '20 12:05 saljam

perhaps emulate the stdlib's gzip API. Receiving multiple files could be just gzip.Reader in multistream mode. In that lib, each file gets metadata in gzip.Header (https://golang.org/pkg/compress/gzip/#Header)

dncohen avatar May 03 '20 22:05 dncohen

Note you can already do this with the pipe subcommand.

On one end:

tar cz . | ww pipe
4-framework-gossamer
...

On another:

ww pipe 4-framework-gossamer | tar xz

With compression too!

Considering this only makes sense on the command line (we can't change metadata on file downloaded by browser) my preference would be to push as much of this as possible onto other tools in general to avoid too much divergence, but I'll leave this one open since it fairly simple.

saljam avatar May 11 '20 23:05 saljam