Skip to content

Commit

Permalink
Adding and optional Symlinker interface,
Browse files Browse the repository at this point in the history
union interface supportint lstat, symlink and readlink
  • Loading branch information
Maldris committed May 20, 2020
1 parent 529d861 commit 819f7ad
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions symlink.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,20 @@
// limitations under the License.

package afero

// Symlinker is an optional interface in Afero. It is only implemented by the
// filesystems saying so.
// It indicates support for 3 symlink related interfaces that implement the
// behaviors of the os methods:
// - Lstat
// - Symlink, and
// - Readlink
type Symlinker interface {
Lstater
Linker
LinkReader
}

// Linker is an optional interface in Afero. It is only implemented by the
// filesystems saying so.
// It will call Symlink if the filesystem itself is, or it delegates to, the os filesystem,
Expand Down

0 comments on commit 819f7ad

Please sign in to comment.