alright, let's keep current approach then.


On Fri, May 23, 2014 at 7:06 PM, 王益 <notifications@github.com> wrote:

> In client.go:
>
> > +var (
> > +	Addr = flag.String("prism", ":12340", "The listen address")
> > +)
> > +
> > +// Publish copies directory sourceDir to destDir.  It creates destDir
> > +// if it does not exist yet.  Currently it does not copy
> > +// sub-directories recursively.
> > +func Publish(sourceDir, destDir string) error {
> > +	if (strings.HasPrefix(sourceDir, file.HDFSPrefix) ||
> > +		strings.HasPrefix(destDir, file.HDFSPrefix)) &&
> > +		!file.IsConnectedToHDFS() {
> > +		return fmt.Errorf("source (%s) or dest (%s) on HDFS, but not connected",
> > +			sourceDir, destDir)
> > +	}
> > +
> > +	is, e := file.List(sourceDir)
>
> It seems that https://godoc.org/github.com/vladimirvivien/gowfs does not
> provide a tar/untar command.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/wangkuiyi/prism/pull/4/files#r12994441>
> .
>