[go-nuts] How do i create a fake drive that shows up in windows explorer?

2016-07-28 Thread Justin C
Good afternoon, I am trying to create a fake (virtual?) drive that would display a programmatic generated file system tree that when the user clicks on a file in internet explore it opens the file but could first run operations on that file like log that it was opened or even de-crypt the file a

[go-nuts] Re: How do i create a fake drive that shows up in windows explorer?

2016-07-29 Thread Justin C
Thank you for your help! I'll look into fuse. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit ht

[go-nuts] Question on decrypting a using StreamReader

2017-02-01 Thread Justin C
I am trying to Decrypt and Encrypt a file downloaded as a stream using some sample code from golang. I am encrypting like this. // read content from your file plaintext, err := ioutil.ReadFile(fileName) if err != nil { panic(err.Error()) } // this is a key key := []

[go-nuts] How do you take a cipher.StreamWriter and pass it to a io.Reader

2017-02-02 Thread Justin C
I have a encryption function that gives a cipher.StreamWriter writer := &cipher.StreamWriter{S: stream, W: outFile} I am trying to upload it to using a library that has a function that is uploadFile that requires a IO.reader is there a way to pass the writer to the io.reader so the file i

Re: [go-nuts] How do you take a cipher.StreamWriter and pass it to a io.Reader

2017-02-02 Thread Justin C
tel wrote: > > Try to construct an io.Pipe maybe > pReader, pWriter := io.Pipe() > writer := &cipher.StreamWriter{S: stream, W: pWriter} > UploadFile(outputFileName, metadata, pReader) > writer.Write(src) > On 02/02/2017 10:27 PM, Justin C wrote: > &g