soul9 avatar soul9 committed f05eb8b

Fix for new go release: Change in the os package

Comments (0)

Files changed (1)

 
 func printDirContents(dirpath string, depth int) (newlines []int, err os.Error) {
 	var m int
-	currentDir, err := os.Open(dirpath, os.O_RDONLY, 0644)
+	currentDir, err := os.OpenFile(dirpath, os.O_RDONLY, 0644)
 	if err != nil {
 		return newlines, err
 	}
 	var args []string = make([]string, 1)
 	args[0] = cmd
 	fds := []*os.File{os.Stdin, os.Stdout, os.Stderr}
-	_, err := os.StartProcess(args[0], args, os.Environ(), fullpath, fds)
+	_, err := os.StartProcess(args[0], args, &os.ProcAttr{Env: os.Environ(), Dir: fullpath, Files: fds})
 	if err != nil {
 		fmt.Fprintf(os.Stderr, err.String())
 		return 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.