~mkhl/xplor

e5db56506d2450c3fef07edaffbcdbdcc51e29c9 — Martin Kühl 10 months ago 3a96b38
Stat symlinks
1 files changed, 5 insertions(+), 0 deletions(-)

M xplor.go
M xplor.go => xplor.go +5 -0
@@ 169,6 169,11 @@ func printContents(w io.Writer, dir string, depth int) error {
	for _, info := range infos {
		name := info.Name()
		path := filepath.Join(dir, name)
		if info.Mode()&os.ModeSymlink != 0 {
			if info, err = os.Stat(path); err != nil {
				return err
			}
		}
		if err := printEntry(w, path, info, depth); err != nil {
			return err
		}