mirror of
https://github.com/genuinetools/reg.git
synced 2024-09-12 06:11:03 -04:00
19 lines
439 B
Go
19 lines
439 B
Go
![]() |
// +build linux freebsd darwin
|
||
|
|
||
|
package volume
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"path/filepath"
|
||
|
"strings"
|
||
|
)
|
||
|
|
||
|
func (p *linuxParser) HasResource(m *MountPoint, absolutePath string) bool {
|
||
|
relPath, err := filepath.Rel(m.Destination, absolutePath)
|
||
|
return err == nil && relPath != ".." && !strings.HasPrefix(relPath, fmt.Sprintf("..%c", filepath.Separator))
|
||
|
}
|
||
|
|
||
|
func (p *windowsParser) HasResource(m *MountPoint, absolutePath string) bool {
|
||
|
return false
|
||
|
}
|