From 819f7ad35d6a3ab7e72ab6851a1fcd52332f0d90 Mon Sep 17 00:00:00 2001 From: Scott Owens Date: Tue, 10 Dec 2019 16:16:41 +1100 Subject: [PATCH] Adding and optional Symlinker interface, union interface supportint lstat, symlink and readlink --- symlink.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/symlink.go b/symlink.go index a730413..ba9d179 100644 --- a/symlink.go +++ b/symlink.go @@ -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,