Comments (5)
直したつもりですが、どうでしょうか。
from files.
エラーが微妙に変わりました。
panic: runtime error: slice bounds out of range
goroutine 1 [running]:
main.main.func1.2(0xc82007e4fe, 0xb)
/home/thinca/.go/src/github.com/mattn/files/files.go:200 +0x135
main.main()
/home/thinca/.go/src/github.com/mattn/files/files.go:215 +0x9d2
goroutine 19 [runnable]:
syscall.Syscall6(0x101, 0xffffffffffffff9c, 0xc8200d2000, 0x80000, 0x0, 0x0, 0x0, 0x3, 0x80000, 0x0)
/usr/lib/go/src/syscall/asm_linux_amd64.s:44 +0x5
syscall.openat(0xffffffffffffff9c, 0xc82007eb40, 0x29, 0x80000, 0x0, 0x0, 0x0, 0x0)
/usr/lib/go/src/syscall/zsyscall_linux_amd64.go:40 +0xc8
syscall.Open(0xc82007eb40, 0x29, 0x80000, 0x0, 0x402733, 0x0, 0x0)
/usr/lib/go/src/syscall/syscall_linux.go:51 +0x58
os.OpenFile(0xc82007eb40, 0x29, 0x0, 0xc800000000, 0xc8200d0000, 0x0, 0x0)
/usr/lib/go/src/os/file_unix.go:93 +0xa3
os.Open(0xc82007eb40, 0x29, 0x7f491f569e28, 0x0, 0x0)
/usr/lib/go/src/os/file.go:246 +0x48
path/filepath.readDirNames(0xc82007eb40, 0x29, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/lib/go/src/path/filepath/path.go:402 +0x5b
path/filepath.walk(0xc82007eb40, 0x29, 0x7f491f37d390, 0xc8200d0000, 0xc820046f58, 0x0, 0x0)
/usr/lib/go/src/path/filepath/path.go:361 +0x1a2
path/filepath.walk(0xc820074120, 0x1e, 0x7f491f37d390, 0xc820092140, 0xc820046f58, 0x0, 0x0)
/usr/lib/go/src/path/filepath/path.go:374 +0x4fc
path/filepath.Walk(0xc820074120, 0x1e, 0xc820046f58, 0x0, 0x0)
/usr/lib/go/src/path/filepath/path.go:396 +0xe1
main.filesSync.func1(0xc820074120, 0x1e, 0x7f491f379000, 0xc82007a7e0, 0xc820078120)
/home/thinca/.go/src/github.com/mattn/files/files.go:41 +0x9f
created by main.filesSync
/home/thinca/.go/src/github.com/mattn/files/files.go:77 +0x11e
from files.
あー、わかりました。直します。
from files.
どうでしょうか?
from files.
動きました!ありがとうございます!
from files.
Related Issues (12)
- 取得するファイル数の最大値を指定するオプションが欲しい HOT 2
- create a version release HOT 4
- distribute linux/mac and windows binaries HOT 2
- The default for `-i` seems to be wrong? HOT 1
- [Feature request] Ignore case by default
- windows.go HOT 1
- 不必要な関数っぽい HOT 1
- CtrlPで使用した時にountが大量発生 HOT 1
- How can I ignore some files or folders? HOT 1
- ディレクトリのみの抽出 HOT 1
- 大量のファイルがあるディレクトリで Asynchronized find すると結果がおかしい? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from files.