cloudstorage icon indicating copy to clipboard operation
cloudstorage copied to clipboard

embed os.FileInfo in object as interface

Open araddon opened this issue 7 years ago • 1 comments

I have noticed use of os.FileInfo inside quite a few projects for reading/iterating files. Would be nice to be able to cast cloudstorage.Object as os.FileInfo for easy alignment with existing code.

https://golang.org/pkg/os/#FileInfo

https://godoc.org/github.com/lytics/cloudstorage#Object

araddon avatar Feb 19 '18 23:02 araddon

sounds good to me. I'll try to think of ways that wouldn't' work and comment here if I can think of any.

epsniff avatar Feb 20 '18 00:02 epsniff