Skip to content

Use a local Walk function #421

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Oct 29, 2019
Prev Previous commit
Next Next commit
style
  • Loading branch information
d-a-v committed Sep 23, 2019
commit 38c71e9a670c6ab327a239f0cfa2117496e87c32
2 changes: 1 addition & 1 deletion arduino/builder/sketch.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ func SketchSaveItemCpp(item *sketch.Item, destPath string) error {

// SimpleLocalWalk locally replaces filepath.Walk and/but goes through symlinks
func SimpleLocalWalk(root string, walkFn func(path string, info os.FileInfo, err error) error) error {

info, err := os.Stat(root)

if err != nil {
Expand Down Expand Up @@ -115,7 +116,6 @@ func SketchLoad(sketchPath, buildPath string) (*sketch.Sketch, error) {
// collect all the sketch files
var files []string
err = SimpleLocalWalk(sketchFolder, func(path string, info os.FileInfo, err error) error {

// ignore hidden files and skip hidden directories
if strings.HasPrefix(info.Name(), ".") {
if info.IsDir() {
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy