feat: more permissive file modes
This commit is contained in:
parent
98e0cea469
commit
fa40e8a762
1 changed files with 4 additions and 1 deletions
|
|
@ -35,7 +35,10 @@ func Exists(path string) (string, error) {
|
|||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
if fi.Mode().IsRegular() {
|
||||
if fi.Mode().IsRegular() ||
|
||||
fi.Mode()&os.ModeDevice != 0 ||
|
||||
fi.Mode()&os.ModeSymlink != 0 ||
|
||||
fi.Mode()&os.ModeNamedPipe != 0 {
|
||||
return filepath.Abs(path)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue