aboutsummaryrefslogtreecommitdiffstats
path: root/cli/cli.go
diff options
context:
space:
mode:
authorTravis2014-09-15 14:33:22 -0700
committerTravis2014-09-15 14:33:22 -0700
commitac9535b897f9f7397c7b5504f40d383513a70c99 (patch)
tree01fc3e41bccf95a8a73efb7d451443d04c3ac67a /cli/cli.go
parenta74b685931d1ed3d3da575d209dd6e66c1569cac (diff)
downloadgdrive-ac9535b897f9f7397c7b5504f40d383513a70c99.tar.bz2
Removed logging cruft.
Diffstat (limited to 'cli/cli.go')
-rw-r--r--cli/cli.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/cli/cli.go b/cli/cli.go
index 77d8cf1..1bf8b36 100644
--- a/cli/cli.go
+++ b/cli/cli.go
@@ -175,9 +175,7 @@ func Upload(d *gdrive.Drive, input io.ReadCloser, title string, parentId string,
if err != nil {
return err
}
- fmt.Println("yooo")
if fi.Mode().IsDir() {
- fmt.Println("is dir yo")
// then upload the entire directory, calling Upload recursively
// make dir first
folder, err := makeFolder(d, filepath.Base(f.Name()), parentId, share)
@@ -193,23 +191,19 @@ func Upload(d *gdrive.Drive, input io.ReadCloser, title string, parentId string,
if err != nil {
return err
}
- fmt.Println("files:", files)
// need to change dirs to get the files in the dir
err = f.Chdir()
if err != nil {
return err
}
for _, el := range files {
- fmt.Println(el)
if el.IsDir() {
// todo: recursively do this, would need to keep track of parent ids for new directories
} else {
- fmt.Println(el.Name())
f2, err := os.Open(el.Name())
if err != nil {
return err
}
- fmt.Println("uploading", el.Name())
Upload(d, f2, filepath.Base(el.Name()), folder.Id, share, mimeType, convert)
}
}