replace os.Stat with os.Lstat
This commit is contained in:
parent
50f4dbda8a
commit
34eef6a228
3 changed files with 7 additions and 7 deletions
|
@ -52,7 +52,7 @@ func NewPath(path string) (string, bool) {
|
|||
Run(); err != nil {
|
||||
return path, false
|
||||
}
|
||||
if _, e := os.Stat(path); e != nil {
|
||||
if _, e := os.Lstat(path); e != nil {
|
||||
return path, false
|
||||
}
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue