2018-03-06 10:32:47 -05:00
|
|
|
// +build linux freebsd darwin
|
|
|
|
|
2018-03-06 10:41:43 -05:00
|
|
|
package volume // import "github.com/docker/docker/volume"
|
2018-03-06 10:32:47 -05:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|