diff options
author | mattn <mattn.jp@gmail.com> | 2020-02-04 12:31:00 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-04 12:31:00 +0900 |
commit | 311b78ae82fc8b06f0eefbd54d6290f3a40d5e23 (patch) | |
tree | 563fb2acaf5a59c2562681d6b98135d92ccb263f /src/constants.go | |
parent | f5cf4fc8fbfbe6e02cb1ee700c035c073db4a5cb (diff) |
[windows] Use native walker since output of DOS command is not UTF-8 encoded (#1847)
Makes scanning 300x faster on Windows
Diffstat (limited to 'src/constants.go')
-rw-r--r-- | src/constants.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/constants.go b/src/constants.go index c568932d..9c635ea5 100644 --- a/src/constants.go +++ b/src/constants.go @@ -62,8 +62,6 @@ func init() { defaultCommand = `set -o pipefail; command find -L . -mindepth 1 \( -path '*/\.*' -o -fstype 'sysfs' -o -fstype 'devfs' -o -fstype 'devtmpfs' -o -fstype 'proc' \) -prune -o -type f -print -o -type l -print 2> /dev/null | cut -b3-` } else if os.Getenv("TERM") == "cygwin" { defaultCommand = `sh -c "command find -L . -mindepth 1 -path '*/\.*' -prune -o -type f -print -o -type l -print 2> /dev/null | cut -b3-"` - } else { - defaultCommand = `for /r %P in (*) do @(set "_curfile=%P" & set "_curfile=!_curfile:%__CD__%=!" & echo !_curfile!)` } } |