Path: blob/main/vendor/github.com/spf13/afero/lstater.go
2875 views
// Copyright © 2018 Steve Francia <[email protected]>.1//2// Licensed under the Apache License, Version 2.0 (the "License");3// you may not use this file except in compliance with the License.4// You may obtain a copy of the License at5// http://www.apache.org/licenses/LICENSE-2.06//7// Unless required by applicable law or agreed to in writing, software8// distributed under the License is distributed on an "AS IS" BASIS,9// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.10// See the License for the specific language governing permissions and11// limitations under the License.1213package afero1415import (16"os"17)1819// Lstater is an optional interface in Afero. It is only implemented by the20// filesystems saying so.21// It will call Lstat if the filesystem itself is, or it delegates to, the os filesystem.22// Else it will call Stat.23// In addition to the FileInfo, it will return a boolean telling whether Lstat was called or not.24type Lstater interface {25LstatIfPossible(name string) (os.FileInfo, bool, error)26}272829